com.ibm.ftt.ui.resources.core.editor
Interface IEditorUtils
- All Known Implementing Classes:
- EditorUtils
public interface IEditorUtils
Interface for editor utility classes. A editor utility class can be used to
obtain the default editor for a given resource. Editor utility classes implementing
this interface are typically responsible for a particular set of file object types.
Additional editor utility classes for file types can be contributed and declared
using the com.ibm.ftt.ui.resources.editorUtils extension point
Each class implementing IEditorUtils must provide a static
method getInstance, which returns a singleton instance of the
class.
Note: Caller should invoke EditorUtils instead of resource type specific
IEditorUtils implementations directly.
COPY_RIGHT
static final String COPY_RIGHT
- See Also:
- Constant Field Values
getDefaultEditor
IEditorDescriptor getDefaultEditor(Object file)
- Returns the descriptor of the default editor for the given file object.
- Parameters:
file - the file object that the editor would open
- Returns:
- a descriptor of the default editor for the file;
null if the current class does not know how to handle the given file