|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.ide.javaxide.ModelInteropUtils
Utilities for extensions which have to interoperate between the JSR-198 (javax.ide) API and the Orace IDE extension API.
| Field Summary | |
static java.lang.String |
OIDE_CONTEXT
The property name of the Oracle IDE context stored in a Javax IDE context. |
| Method Summary | |
static ModelInteropUtils |
get()
Get the singleton instance. |
Context |
getOracleContext(Context jideContext)
Get the Oracle IDE context for a Javax IDE context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String OIDE_CONTEXT
| Method Detail |
public Context getOracleContext(Context jideContext)
Instances of custom Javax IDE document types in an Oracle IDE context are castable to their nearest Oracle IDE equivalent. For example, if some custom Javax IDE document type extending javax.ide.model.text.TextDocument is in the Javax IDE selection, the equivalent item in the Oracle IDE selection will be of a type that is castable to oracle.ide.model.TextNode.
Properties are not shared between Javax IDE contexts and Oracle IDE contexts. Because of this, you will probably not get what you expect if you use the getProperty() method (or its utility wrappers such as getBoolean()) on the returned context. This is an implementation detail that might change in future releases.
jideContext - a Javax IDE context (an instance of
javax.ide.command.Context). Must not be null.
java.lang.NullPointerException - if jideContext is null.public static ModelInteropUtils get()
|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle.All rights reserved.