Package org.eclipse.ui
Interface IEditorDescriptor
- All Superinterfaces:
- IWorkbenchPartDescriptor
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:
- Restriction:
- This interface is not intended to be implemented by clients.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the editor matching strategy object for editors represented by this editor descriptor, ornullif there is no explicit matching strategy specified.getId()Returns the editor id.Returns the descriptor of the image for this editor.getLabel()Returns the label to show for this editor.booleanReturns whether this editor descriptor will open a regular editor part inside the editor area.booleanReturns whether this editor descriptor will open an external editor in a new window outside the workbench.booleanReturns whether this editor descriptor will open an external editor in-place inside the editor area.
- 
Method Details- 
getIdString getId()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. - Specified by:
- getIdin interface- IWorkbenchPartDescriptor
- Returns:
- the id of the editor
 
- 
getImageDescriptorImageDescriptor getImageDescriptor()Returns the descriptor of the image for this editor.- Specified by:
- getImageDescriptorin interface- IWorkbenchPartDescriptor
- Returns:
- the descriptor of the image to display next to this editor
 
- 
getLabelString getLabel()Returns the label to show for this editor.- Specified by:
- getLabelin interface- IWorkbenchPartDescriptor
- Returns:
- the editor label
 
- 
isInternalboolean isInternal()Returns whether this editor descriptor will open a regular editor part inside the editor area.- Returns:
- trueif editor is inside editor area, and- falseotherwise
- Since:
- 3.0
 
- 
isOpenInPlaceboolean isOpenInPlace()Returns whether this editor descriptor will open an external editor in-place inside the editor area.- Returns:
- trueif editor is in-place, and- falseotherwise
- Since:
- 3.0
 
- 
isOpenExternalboolean isOpenExternal()Returns whether this editor descriptor will open an external editor in a new window outside the workbench.- Returns:
- trueif editor is external, and- falseotherwise
- Since:
- 3.0
 
- 
getEditorMatchingStrategyIEditorMatchingStrategy getEditorMatchingStrategy()Returns the editor matching strategy object for editors represented by this editor descriptor, ornullif there is no explicit matching strategy specified.- Returns:
- the editor matching strategy, or nullif none
- Since:
- 3.1
 
 
-