public interface IEditorDescriptor extends IWorkbenchPartDescriptor
An editor descriptor typically represents one of three types of editors:
This interface is not intended to be implemented or extended by clients.
IEditorRegistry
Modifier and Type | Method and Description |
---|---|
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. |
String |
getId()
Returns the editor id.
|
ImageDescriptor |
getImageDescriptor()
Returns the descriptor of the image for this editor.
|
String |
getLabel()
Returns the label to show for this editor.
|
boolean |
isInternal()
Returns whether this editor descriptor will open a regular editor
part inside the editor area.
|
boolean |
isOpenExternal()
Returns whether this editor descriptor will open an external editor
in a new window outside the workbench.
|
boolean |
isOpenInPlace()
Returns whether this editor descriptor will open an external
editor in-place inside the editor area.
|
String getId()
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.
getId
in interface IWorkbenchPartDescriptor
ImageDescriptor getImageDescriptor()
getImageDescriptor
in interface IWorkbenchPartDescriptor
String getLabel()
getLabel
in interface IWorkbenchPartDescriptor
boolean isInternal()
true
if editor is inside editor area, and
false
otherwiseboolean isOpenInPlace()
true
if editor is in-place, and false
otherwiseboolean isOpenExternal()
true
if editor is external, and false
otherwiseIEditorMatchingStrategy getEditorMatchingStrategy()
null
if there is no explicit matching strategy specified.null
if none
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.