Subclasses are responsible for configuring the editor appropriately. The standard text editor, TextEditor
, is one such example.
If a subclass calls {@linkplain #setEditorContextMenuId(String) setEditorContextMenuId} the argument isused as the id under which the editor's context menu is registered for extensions. If no id is set, the context menu is registered under [editor_id].EditorContext whereby [editor_id] is replaced with the editor's part id. If the editor is instructed to run in version 1.0 context menu registration compatibility mode, the latter form of the registration even happens if a context menu id has been set via {@linkplain #setEditorContextMenuId(String) setEditorContextMenuId}. If no id is set while in compatibility mode, the menu is registered under {@link #DEFAULT_EDITOR_CONTEXT_MENU_ID}.
If a subclass calls {@linkplain #setRulerContextMenuId(String) setRulerContextMenuId} the argument isused as the id under which the ruler's context menu is registered for extensions. If no id is set, the context menu is registered under [editor_id].RulerContext whereby [editor_id] is replaced with the editor's part id. If the editor is instructed to run in version 1.0 context menu registration compatibility mode, the latter form of the registration even happens if a context menu id has been set via {@linkplain #setRulerContextMenuId(String) setRulerContextMenuId}. If no id is set while in compatibility mode, the menu is registered under {@link #DEFAULT_RULER_CONTEXT_MENU_ID}.
|
|
|
|