|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.ide.editor.EditorAddin
This class is used to declare an Editor with the EditorManager.
| Field Summary | |
static java.lang.String |
ATTRIBUTE_NO_RECENT_FILE
return Boolean.FALSE if you do not want to be added to the 'recent files dialog'. |
| Constructor Summary | |
EditorAddin()
|
|
| Method Summary | |
java.lang.Object |
getAttribute(java.lang.Object key)
|
abstract java.lang.Class |
getEditorClass()
Gets the fully qualified class name of the Editor being registered. |
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.
|
abstract MenuSpec |
getMenuSpecification()
Gets the menu specification of this Addin. |
void |
initialize()
Invoked by the AddinManager after the instance of the
Addin is instantiated. |
boolean |
isDefault()
inheritDoc |
boolean |
isDuplicable()
An EditorAddin should return true if its editor allows duplication. |
boolean |
restoreAtStartup()
Determines if the document must be reloaded at startup. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ATTRIBUTE_NO_RECENT_FILE
Boolean.FALSE if you do not want to be added to the 'recent files dialog'.
| Constructor Detail |
public EditorAddin()
| Method Detail |
public abstract java.lang.Class getEditorClass()
public boolean isDefault()
public abstract MenuSpec getMenuSpecification()
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.
element -
public boolean isDuplicable()
public boolean restoreAtStartup()
public java.lang.Object getAttribute(java.lang.Object key)
key - one of the ATTRIBUTE_ constants.
public void initialize()
AddinAddinManager after the instance of the
Addin is instantiated. When invoked, The Addin
should register and menu items, and actions required for use during this
classes lifecycle. Addin authors should take care to ensure
that any extraneous initialization is not preformed on this method, and
any startup code that can be delayed until a later time is delayed, as
the Addin's are synchronously initialized during the
startup of the IDE, and each Addin has the potential to
negatively impact the startup time of the product.
initialize in interface AddinAddinManager
|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle.All rights reserved.