public final class EditorUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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 Editor |
openExplicitDefaultEditorInFrame(Node node,
Context context)
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'
|
public static Editor openExplicitEditorInFrame(java.lang.Class editorClass, Context context)
editorClass - context - public static Editor openExplicitDefaultEditorInFrame(Node node)
node - public static Editor openExplicitDefaultEditorInFrame(Node node, Context context)
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