|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.javaxide.ModelInteropUtils
public abstract class ModelInteropUtils
Utilities for extensions which have to interoperate between the JSR-198 (javax.ide) API and the Orace IDE extension API.
You should obtain the singleton implementation of this class using the get()
method.
This class should not be subclassed or instantiated by extension writers.
Field Summary | |
---|---|
static java.lang.String |
OIDE_CONTEXT The property name of the Oracle IDE context stored in a Javax IDE context. |
Constructor Summary | |
---|---|
protected |
ModelInteropUtils() |
Method Summary | |
---|---|
static ModelInteropUtils |
get() Get the singleton instance. |
abstract Context |
getJavaxIdeContext(Context oracleContext) Get the Javax IDE context for an Oracle IDE context. |
Context |
getOracleContext(Context jideContext) Get the Oracle IDE context for a Javax IDE context. |
protected static void |
set(ModelInteropUtils instance) |
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
Constructor Detail |
---|
protected ModelInteropUtils()
Method Detail |
---|
public abstract Context getJavaxIdeContext(Context oracleContext)
oracleContext
- an Oracle IDE context. Must not be null.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()
protected static void set(ModelInteropUtils instance)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |