Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.ide.editor
Class EditorUtil

java.lang.Object
  extended by oracle.ide.editor.EditorUtil

public final class EditorUtil
extends java.lang.Object


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

openExplicitEditorInFrame

public static Editor openExplicitEditorInFrame(java.lang.Class editorClass,
                                               Context context)
Opens the specified editor and makes the document 'explicit'

Parameters:
editorClass -
context -

openExplicitDefaultEditorInFrame

public static Editor openExplicitDefaultEditorInFrame(Node node)
Opens the specified editor and makes the document 'explicit'

Parameters:
node -

openExplicitDefaultEditorInFrame

public static void openExplicitDefaultEditorInFrame(java.net.URL url)
Opens the specified editor and makes the document 'explicit'

Parameters:
url -

openDefaultEditorInFrameExternal

public static Editor openDefaultEditorInFrameExternal(java.net.URL url)
Open the item at the specified 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.

Parameters:
url - the URL of the item to open.
Returns:
the Editor instance that was opened, or null if the operation failed.

openDefaultEditorInFrame

public static Editor openDefaultEditorInFrame(java.net.URL url)
Open the specified 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.

Parameters:
url - the URL of the file to open
Returns:
the Editor instance that was opened

openDefaultEditorInFrame

public static Editor openDefaultEditorInFrame(Element element)
Open the specified element using the default editor.

Parameters:
element - the Element to open
Returns:
the Editor instance that was opened

openDefaultEditorInFrame

public static Editor openDefaultEditorInFrame(Node node)
Open the specified node using the default editor.

Parameters:
node - the node to open
Returns:
the Editor instance that was opened

openDefaultEditorInFrame

public static Editor openDefaultEditorInFrame(Node node,
                                              Context context)
Open the specified node using the default editor. This method makes sure that the editor is opened within the context of the project containing the node. It uses project dependecies to determine the project containing the node.

Parameters:
node - the node to open
Returns:
the Editor instance that was opened

findNodeInContext

public static Context findNodeInContext(Element node,
                                        Context context)
Find the project containing the specified node. It first uses the project in the given context to look for the project. If that fails it then uses project dependecies to determine the project containing the node.

Parameters:
node - the node to open
context - the current context
Returns:
the Editor instance that was opened

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.