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

E17493-02

oracle.jdeveloper.merge
Class AbstractMergeAddin

java.lang.Object
  extended by oracle.ide.editor.EditorAddin
      extended by oracle.jdevimpl.compare.BaseCompareAddin
          extended by oracle.jdeveloper.merge.BaseMergeAddin
              extended by oracle.jdeveloper.merge.AbstractMergeAddin
All Implemented Interfaces:
Addin
Direct Known Subclasses:
DynamicMergeAddin

Deprecated. replaced by DynamicMergeAddin

@Deprecated
public abstract class AbstractMergeAddin
extends BaseMergeAddin

Abstract class for a dynamically registered merge editor addin.

Since:
10.1.3.0.3

Field Summary
 
Fields inherited from class oracle.ide.editor.EditorAddin
ATTRIBUTE_NO_RECENT_FILE, ATTRIBUTE_RESTORABLE
 
Constructor Summary
protected AbstractMergeAddin()
          Deprecated. Constructor.
protected AbstractMergeAddin(java.lang.Class<? extends AbstractMergeEditor> editorClass)
          Deprecated. Constructor.
 
Method Summary
 void closeEditors()
          Deprecated. Closes all merge editors of the type represented by this addin.
 float getEditorWeight(Element element)
          Deprecated. This method is called by the EditorManager when a FlatEditorAddin is registered with EditorManager.registerDynamic(EditorAddin) and a new file is opened.
 boolean isEditorAvailable(Context context)
          Deprecated. Asks whether the merge editor should be made available for the given context.
protected  boolean isEditorAvailable(Element element)
          Deprecated. Asks whether the editor should be made available for the given Element.
protected  boolean isEditorAvailable(java.net.URL url)
          Deprecated. Asks whether the editor should be made available for the given URL.
 
Methods inherited from class oracle.jdeveloper.merge.BaseMergeAddin
getEditorClass, getMenuSpecification, getMergeEditorClass, isDefault, isDuplicable, restoreAtStartup
 
Methods inherited from class oracle.jdevimpl.compare.BaseCompareAddin
addCompareToolbarActionsToPopup, gatherCompareDynamicActions
 
Methods inherited from class oracle.ide.editor.EditorAddin
getAttribute, initialize, isMultifile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMergeAddin

protected AbstractMergeAddin()
Deprecated. 
Constructor.


AbstractMergeAddin

protected AbstractMergeAddin(java.lang.Class<? extends AbstractMergeEditor> editorClass)
Deprecated. 
Constructor.

Parameters:
editorClass - the merge editor class
Method Detail

getEditorWeight

public float getEditorWeight(Element element)
Deprecated. 
This method is called by the EditorManager when a FlatEditorAddin is registered with EditorManager.registerDynamic(EditorAddin) and a new file is opened.

The returned value is used to determine if an editor tab should be added and where it should be added.

The meaning of 'secondary' has not been clearly defined yet but it could mean that those editors would be available from a continuation button at the right of the editor tabs. In case you forgot, a float value ends with a 'F', like '0.5F'

Overrides:
getEditorWeight in class EditorAddin
Parameters:
element -
Returns:
A float value that indicates where to position the editor tab.

isEditorAvailable

public boolean isEditorAvailable(Context context)
Deprecated. 
Asks whether the merge editor should be made available for the given context. By default, delegates to isEditorAvailable(Element) with the element of the context.

Parameters:
context - a given context.
Returns:
true if the merge editor should be made availabe.

isEditorAvailable

protected boolean isEditorAvailable(Element element)
Deprecated. 
Asks whether the editor should be made available for the given Element. By default, we delegate to isEditorAvailable(URL).

Parameters:
element - the element.
Returns:
true is the editor should be made available.

isEditorAvailable

protected boolean isEditorAvailable(java.net.URL url)
Deprecated. 
Asks whether the editor should be made available for the given URL. By default, returns false.

Parameters:
url - the URL.
Returns:
true is the editor should be made available.

closeEditors

public void closeEditors()
Deprecated. 
Closes all merge editors of the type represented by this addin.


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.