public interface IEditorManager
Modifier and Type | Method and Description |
---|---|
void |
addEditorProvider(IEditorProvider provider)
Adds a new editor to the editor manager.
|
IEditorProvider |
getDefaultEditorProvider(IFileInterpreter fileInterpreter)
Returns the default editor for the given file interpreter.
|
IEditorProvider |
getEditorProvider(Class clazz)
Returns the editor provider instance with the given class.
|
IEditorProvider[] |
getEditorProviders()
Returns an array that contains all editor providers.
|
IEditorProvider[] |
getMatchingEditorProviders(IFileInterpreter fileInterpreter)
Returns all editor providers that would accept the given file
interpreter.
|
void |
removeEditorProvider(IEditorProvider provider)
Removes the given editor provider from the editor manager.
|
void addEditorProvider(IEditorProvider provider)
provider
- the new editor providervoid removeEditorProvider(IEditorProvider provider)
provider
- the editor provider that should be removed from the managerIEditorProvider getDefaultEditorProvider(IFileInterpreter fileInterpreter)
fileInterpreter
- the file interpreter for which the editor provider is neededIEditorProvider[] getMatchingEditorProviders(IFileInterpreter fileInterpreter)
fileInterpreter
- the file interpreter for which editor providers are searchedIEditorProvider[] getEditorProviders()
IEditorProvider getEditorProvider(Class clazz)
clazz
- the class of the editor provider to return