java.lang.Object
javax.ide.extension.ElementVisitor
javax.ide.extension.ExtensionHook
javax.ide.editor.spi.EditorHook
- public final class EditorHook
- extends javax.ide.extension.ExtensionHook
Editor information gathered from processing the editor-hook
section of an extension manifest. The information recorded
here describes a new editor.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT
public static final javax.ide.extension.ElementName ELEMENT
EDITORS
private static final javax.ide.extension.ElementName EDITORS
EDITOR
private static final javax.ide.extension.ElementName EDITOR
NAME
private static final javax.ide.extension.ElementName NAME
MAPPINGS
private static final javax.ide.extension.ElementName MAPPINGS
MAPPING
private static final javax.ide.extension.ElementName MAPPING
OPEN_WITH
private static final javax.ide.extension.ElementName OPEN_WITH
LISTENERS
private static final javax.ide.extension.ElementName LISTENERS
EDITOR_LISTENER
private static final javax.ide.extension.ElementName EDITOR_LISTENER
_editorsVisitor
private javax.ide.extension.ElementVisitor _editorsVisitor
_editorVisitor
private javax.ide.extension.ElementVisitor _editorVisitor
_mappingsVisitor
private javax.ide.extension.ElementVisitor _mappingsVisitor
_mappingVisitor
private javax.ide.extension.ElementVisitor _mappingVisitor
_openWithVisitor
private javax.ide.extension.ElementVisitor _openWithVisitor
_listenersVisitor
private javax.ide.extension.ElementVisitor _listenersVisitor
_listenerVisitor
private javax.ide.extension.ElementVisitor _listenerVisitor
KEY_DOCUMENT_CLASS
private static final java.lang.String KEY_DOCUMENT_CLASS
- See Also:
- Constant Field Values
KEY_OPEN_WITH_COLL
private static final java.lang.String KEY_OPEN_WITH_COLL
- See Also:
- Constant Field Values
ANY_EDITOR_CLASS
public static final java.lang.String ANY_EDITOR_CLASS
- See Also:
- Constant Field Values
_editorsByClassName
private java.util.Map _editorsByClassName
_mappings
private java.util.Map _mappings
_listeners
private java.util.Map _listeners
_editorDisplayInfo
private java.util.Map _editorDisplayInfo
EditorHook
public EditorHook()
getDisplayInfo
public DisplayInfo getDisplayInfo(javax.ide.util.MetaClass editorClass)
- Get the display information for the specified editor class.
getEditors
public java.util.Collection getEditors()
- Get all registered editors.
getEditorClass
public javax.ide.util.MetaClass getEditorClass(java.lang.String className)
- Get the editor meta class for the specified unique editor class name.
getMappedDocumentClasses
public java.util.Collection getMappedDocumentClasses()
- Get the class names of all mapped document classes.
getEditorsForDocClass
public java.util.Collection getEditorsForDocClass(java.lang.Class documentClass)
- Get the list of mapping infos for the specified document class. Each
mapping info is an editor class and a value indicating whether
getListeners
public java.util.Map getListeners()
- Get the list of editor listeners declared in an extension
manifest. This information records the editor listener
classes interested in receiving events from specific editor types.
start
public void start(javax.ide.extension.ElementStartContext context)
- Description copied from class:
javax.ide.extension.ElementVisitor
- Visit the start tag of an xml element.
This implementation does nothing.