|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.editor.EditorAddin
oracle.jdeveloper.merge.AbstractMergeAddin
public abstract class AbstractMergeAddin
Abstract class for a dynamically registered merge editor addin.
Field Summary |
---|
Fields inherited from class oracle.ide.editor.EditorAddin |
---|
ATTRIBUTE_NO_RECENT_FILE, ATTRIBUTE_RESTORABLE |
Constructor Summary | |
---|---|
AbstractMergeAddin(java.lang.Class editorClass) Constructor. |
Method Summary | |
---|---|
void |
closeEditors() Closes all merge editors of the type represented by this addin. |
java.lang.Class |
getEditorClass() Gets the merge editor class associated with this merge addin. |
float |
getEditorWeight(Element element) This method is called by the EditorManager when a FlatEditorAddin is registered with EditorManager.registerDynamic(EditorAddin) and a new file is opened. |
MenuSpec |
getMenuSpecification() Gets the menu specification of this Addin. |
boolean |
isDefault() |
boolean |
isDuplicable() An EditorAddin should return true if its editor allows duplication. |
boolean |
isEditorAvailable(Context context) Asks whether the merge editor should be made available for the given context. |
protected boolean |
isEditorAvailable(Element element) Asks whether the editor should be made available for the given Element . |
protected boolean |
isEditorAvailable(java.net.URL url) Asks whether the editor should be made available for the given URL . |
boolean |
restoreAtStartup() Determines if the document must be reloaded at startup. |
Methods inherited from class oracle.ide.editor.EditorAddin |
---|
getAttribute, initialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMergeAddin(java.lang.Class editorClass)
editorClass
- the merge editor classMethod Detail |
---|
public java.lang.Class getEditorClass()
getEditorClass
in class EditorAddin
public boolean isEditorAvailable(Context context)
isEditorAvailable(Element)
with the element of the context.context
- a given context.true
if the merge editor should be made availabe.public void closeEditors()
public float getEditorWeight(Element element)
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.
Float.NaN
if it does not want to be exposed.getEditorWeight
in class EditorAddin
element
-public boolean isDefault()
isDefault
in class EditorAddin
public boolean isDuplicable()
isDuplicable
in class EditorAddin
public boolean restoreAtStartup()
restoreAtStartup
in class EditorAddin
public MenuSpec getMenuSpecification()
getMenuSpecification
in class EditorAddin
protected boolean isEditorAvailable(Element element)
Element
. By default, we delegate to isEditorAvailable(URL)
.element
- the element.true
is the editor should be made available.protected boolean isEditorAvailable(java.net.URL url)
URL
. By default, returns false
.url
- the URL.true
is the editor should be made available.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |