Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.editor.spi
Class EditorHook  view EditorHook download EditorHook.java

java.lang.Object
  extended byjavax.ide.extension.ElementVisitor
      extended byjavax.ide.extension.ExtensionHook
          extended byjavax.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.


Nested Class Summary
private  class EditorHook.EditorsVisitor
           
private  class EditorHook.EditorVisitor
           
private  class EditorHook.ListenersVisitor
           
private  class EditorHook.ListenerVisitor
           
private  class EditorHook.MappingsVisitor
           
private  class EditorHook.MappingVisitor
           
private  class EditorHook.OpenWithVisitor
           
 
Field Summary
private  java.util.Map _editorDisplayInfo
           
private  java.util.Map _editorsByClassName
           
private  javax.ide.extension.ElementVisitor _editorsVisitor
           
private  javax.ide.extension.ElementVisitor _editorVisitor
           
private  java.util.Map _listeners
           
private  javax.ide.extension.ElementVisitor _listenersVisitor
           
private  javax.ide.extension.ElementVisitor _listenerVisitor
           
private  java.util.Map _mappings
           
private  javax.ide.extension.ElementVisitor _mappingsVisitor
           
private  javax.ide.extension.ElementVisitor _mappingVisitor
           
private  javax.ide.extension.ElementVisitor _openWithVisitor
           
static java.lang.String ANY_EDITOR_CLASS
           
private static javax.ide.extension.ElementName EDITOR
           
private static javax.ide.extension.ElementName EDITOR_LISTENER
           
private static javax.ide.extension.ElementName EDITORS
           
static javax.ide.extension.ElementName ELEMENT
           
private static java.lang.String KEY_DOCUMENT_CLASS
           
private static java.lang.String KEY_OPEN_WITH_COLL
           
private static javax.ide.extension.ElementName LISTENERS
           
private static javax.ide.extension.ElementName MAPPING
           
private static javax.ide.extension.ElementName MAPPINGS
           
private static javax.ide.extension.ElementName NAME
           
private static javax.ide.extension.ElementName OPEN_WITH
           
 
Fields inherited from class javax.ide.extension.ExtensionHook
KEY_EXTENSION, KEY_RSBUNDLE_CLASS, MANIFEST_XMLNS
 
Fields inherited from class javax.ide.extension.ElementVisitor
KEY_LOCATOR
 
Constructor Summary
EditorHook()
           
 
Method Summary
 DisplayInfo getDisplayInfo(javax.ide.util.MetaClass editorClass)
          Get the display information for the specified editor class.
 javax.ide.util.MetaClass getEditorClass(java.lang.String className)
          Get the editor meta class for the specified unique editor class name.
 java.util.Collection getEditors()
          Get all registered editors.
 java.util.Collection getEditorsForDocClass(java.lang.Class documentClass)
          Get the list of mapping infos for the specified document class.
 java.util.Map getListeners()
          Get the list of editor listeners declared in an extension manifest.
 java.util.Collection getMappedDocumentClasses()
          Get the class names of all mapped document classes.
 void start(javax.ide.extension.ElementStartContext context)
          Visit the start tag of an xml element.
 
Methods inherited from class javax.ide.extension.ExtensionHook
getExtension, getRSBundleClass, resolvePath
 
Methods inherited from class javax.ide.extension.ElementVisitor
end, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

EditorHook

public EditorHook()
Method Detail

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.