|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.editor.EditorUtil
public final class EditorUtil
Method Summary | |
---|---|
static Context |
findNodeInContext(Element node, Context context) Find the project containing the specified node. |
static Editor |
openDefaultEditorInFrame(Element element) Open the specified element using the default editor. |
static Editor |
openDefaultEditorInFrame(Node node) Open the specified node using the default editor. |
static Editor |
openDefaultEditorInFrame(Node node, Context context) Open the specified node using the default editor. |
static Editor |
openDefaultEditorInFrame(java.net.URL url) Open the specified URL using the default editor. |
static Editor |
openDefaultEditorInFrameExternal(java.net.URL url) Open the item at the specified URL in its default Editor . |
static Editor |
openExplicitDefaultEditorInFrame(Node node) Opens the specified editor and makes the document 'explicit' |
static void |
openExplicitDefaultEditorInFrame(java.net.URL url) Opens the specified editor and makes the document 'explicit' |
static Editor |
openExplicitEditorInFrame(java.lang.Class editorClass, Context context) Opens the specified editor and makes the document 'explicit' |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Editor openExplicitEditorInFrame(java.lang.Class editorClass, Context context)
editorClass
-context
-public static Editor openExplicitDefaultEditorInFrame(Node node)
node
-public static void openExplicitDefaultEditorInFrame(java.net.URL url)
url
-public static Editor openDefaultEditorInFrameExternal(java.net.URL url)
URL
in its default Editor
.
This method is primarily used by the editor frame and desktop drag-and-drop code to handle files dropped from the O/S into the editor desktop area.
url
- the URL
of the item to open.Editor
instance that was opened, or null
if the operation failed.public static Editor openDefaultEditorInFrame(java.net.URL url)
URL
using the default editor. This will create a node for the file, and from that node, we can figure out what kind of editor we can open. This lets the NodeFactory take care of recognizing the file type.url
- the URL
of the file to openEditor
instance that was openedpublic static Editor openDefaultEditorInFrame(Element element)
element
- the Element
to openpublic static Editor openDefaultEditorInFrame(Node node)
node
- the node to openpublic static Editor openDefaultEditorInFrame(Node node, Context context)
node
- the node to openpublic static Context findNodeInContext(Element node, Context context)
node
- the node to opencontext
- the current context
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |