|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.editor.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 , and add that item to the top-level 'Miscellaneous Files'
folder. |
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
, and add that item to the top-level 'Miscellaneous Files'
folder.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 open
Editor
instance that was openedpublic static Editor openDefaultEditorInFrame(Element element)
element
- the Element
to open
public static Editor openDefaultEditorInFrame(Node node)
node
- the node to open
public static Editor openDefaultEditorInFrame(Node node, Context context)
node
- the node to open
public static Context findNodeInContext(Element node, Context context)
node
- the node to opencontext
- the current context
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.