Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.jdeveloper.vcs.util
Class VCSEditorUtils

java.lang.Object
  extended by oracle.jdeveloper.vcs.util.VCSEditorUtils

public final class VCSEditorUtils
extends java.lang.Object

Utility class for editor operations.

Since:
9.0.5

Method Summary
static void closeEditors(java.lang.Class<? extends Node> nodeClass)
          Deprecated. replaced by closeEditorsForNodeType(java.lang.Class).
static void closeEditorsForEditorType(java.lang.Class<? extends Editor> editorClass)
          Closes all open editors of the given class type through the editor manager.
static void closeEditorsForNodeType(java.lang.Class<? extends Node> nodeClass)
          Closes all open editors with node of the given class type through the editor manager.
static Context createEditorContext(Node node)
          Create a context for editor invocation based on the given node.
static Editor openEditor(Context context, java.lang.Class editorClass)
          Opens the editor for the given context and editor class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createEditorContext

public static final Context createEditorContext(Node node)
Create a context for editor invocation based on the given node. The context is initialized with a project, where possible.

Parameters:
node - the node of the context.
Returns:
the context.

openEditor

public static final Editor openEditor(Context context,
                                      java.lang.Class editorClass)
Opens the editor for the given context and editor class. If the editor already exists, it will be brought to the front.

Parameters:
context - the context of the editor.
editorClass - the class of the editor.
Returns:
the editor which was created, or found.

closeEditors

public static final void closeEditors(java.lang.Class<? extends Node> nodeClass)
Deprecated. replaced by closeEditorsForNodeType(java.lang.Class).

Closes all open editors with node of the given class type through the editor manager.

Parameters:
nodeClass - the class of nodes whose editors will be closed.

closeEditorsForNodeType

public static final void closeEditorsForNodeType(java.lang.Class<? extends Node> nodeClass)
Closes all open editors with node of the given class type through the editor manager.

Parameters:
nodeClass - the class of nodes whose editors will be closed.

closeEditorsForEditorType

public static final void closeEditorsForEditorType(java.lang.Class<? extends Editor> editorClass)
Closes all open editors of the given class type through the editor manager.

Parameters:
editorClass - the class of editors that will be closed.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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