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

E13403-07

oracle.jdeveloper.merge
Class MergeUtil

java.lang.Object
  extended by oracle.jdeveloper.merge.MergeUtil

public class MergeUtil
extends java.lang.Object

Utilities class for merge editor consumers / providers.

Since:
10.1.3.0.3

Method Summary
static Context createMergeEditorContext(Node node)
          Create a context for merge editor invocation based on the given node.
static Editor openMergeEditor(Context context, java.lang.Class editorClass)
          Opens the merge editor for the given context and editor class.
static Editor openMergeEditor(Node node, java.lang.Class editorClass)
          Opens the merge editor for the given node and editor class.
static Editor reopenMergeEditor(Node node, java.lang.Class editorClass)
          Reopens the merge editor for the given node and editor class, restarting the merge task if the editor is in 'complete state'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reopenMergeEditor

public static final Editor reopenMergeEditor(Node node,
                                             java.lang.Class editorClass)
                                      throws java.io.IOException
Reopens the merge editor for the given node and editor class, restarting the merge task if the editor is in 'complete state'.

Parameters:
node - the node of the merge editor.
editorClass - the class of the merge editor.
Returns:
the editor which was created, or found.
Throws:
java.io.IOException - if an I/O exception occurred restarting the merge.

openMergeEditor

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

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

createMergeEditorContext

public static final Context createMergeEditorContext(Node node)
Create a context for merge 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 merge context.

openMergeEditor

public static final Editor openMergeEditor(Context context,
                                           java.lang.Class editorClass)
Opens the merge 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 merge editor.
editorClass - the class of the merge editor.
Returns:
the editor which was created, or found.

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

E13403-07

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