Eclipse Platform
2.0

org.eclipse.ui
Interface IEditorDescriptor

All Superinterfaces:
IWorkbenchPartDescriptor

public interface IEditorDescriptor
extends 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:

This interface is not intended to be implemented by clients.

See Also:
IEditorRegistry

Method Summary
 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.
 

Method Detail

getId

public String 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:
getId in interface IWorkbenchPartDescriptor
Returns:
the id of the editor

getImageDescriptor

public ImageDescriptor getImageDescriptor()
Returns the descriptor of the image for this editor.

Specified by:
getImageDescriptor in interface IWorkbenchPartDescriptor
Returns:
the descriptor of the image to display next to this editor

getLabel

public String getLabel()
Returns the label to show for this editor.

Specified by:
getLabel in interface IWorkbenchPartDescriptor
Returns:
the editor label

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.