| org.eclipse.ui.IEditorDescriptor
All known Subclasses: org.eclipse.ui.internal.registry.EditorDescriptor,
IEditorDescriptor | public interface IEditorDescriptor extends IWorkbenchPartDescriptor(Code) | | Description of an editor in the workbench editor registry. The
editor descriptor contains the information needed to create editor instances.
An editor descriptor typically represents one of three types of editors:
- a file editor extension for a specific file extension.
- a file editor added by the user (via the workbench preference page)
- a general editor extension which works on objects other than files.
This interface is not intended to be implemented or extended by clients.
See Also: IEditorRegistry |
Method Summary | |
public IEditorMatchingStrategy | getEditorMatchingStrategy() Returns the editor matching strategy object for editors
represented by this editor descriptor, or null
if there is no explicit matching strategy specified. | public String | getId() Returns the editor id. | public ImageDescriptor | getImageDescriptor() Returns the descriptor of the image for this editor. | public String | getLabel() Returns the label to show for this editor. | public boolean | isInternal() Returns whether this editor descriptor will open a regular editor
part inside the editor area. | public boolean | isOpenExternal() Returns whether this editor descriptor will open an external editor
in a new window outside the workbench. | public boolean | isOpenInPlace() Returns whether this editor descriptor will open an external
editor in-place inside the editor area. |
getEditorMatchingStrategy | public IEditorMatchingStrategy getEditorMatchingStrategy()(Code) | | Returns the editor matching strategy object for editors
represented by this editor descriptor, or null
if there is no explicit matching strategy specified.
the editor matching strategy, or null if none since: 3.1 |
getId | public String getId()(Code) | | Returns the editor id.
For internal editors, this is the extension id as defined in the workbench
registry; for external editors, it is path and file name of the external
program.
the id of the editor |
getImageDescriptor | public ImageDescriptor getImageDescriptor()(Code) | | Returns the descriptor of the image for this editor.
the descriptor of the image to display next to this editor |
getLabel | public String getLabel()(Code) | | Returns the label to show for this editor.
the editor label |
isInternal | public boolean isInternal()(Code) | | Returns whether this editor descriptor will open a regular editor
part inside the editor area.
true if editor is inside editor area, andfalse otherwise since: 3.0 |
isOpenExternal | public boolean isOpenExternal()(Code) | | Returns whether this editor descriptor will open an external editor
in a new window outside the workbench.
true if editor is external, and false otherwise since: 3.0 |
isOpenInPlace | public boolean isOpenInPlace()(Code) | | Returns whether this editor descriptor will open an external
editor in-place inside the editor area.
true if editor is in-place, and false otherwise since: 3.0 |
|
|