public interface IEditorAssociationOverride
This interface is implemented by org.eclipse.ui.ide.editorAssociationOverride
extensions.
Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
IEditorDescriptor |
overrideDefaultEditor(IEditorInput editorInput,
IContentType contentType,
IEditorDescriptor editorDescriptor)
Allows to override the given editor descriptor for the given editor input with a different
one.
|
IEditorDescriptor |
overrideDefaultEditor(String fileName,
IContentType contentType,
IEditorDescriptor editorDescriptor)
Allows to override the given editor descriptor for the given input with a different one.
|
IEditorDescriptor[] |
overrideEditors(IEditorInput editorInput,
IContentType contentType,
IEditorDescriptor[] editorDescriptors)
Allows to override the given editor descriptors for the given editor input with different
ones.
|
IEditorDescriptor[] |
overrideEditors(String fileName,
IContentType contentType,
IEditorDescriptor[] editorDescriptors)
Allows to override the given editor descriptors for the given file name with different ones.
|
IEditorDescriptor[] overrideEditors(IEditorInput editorInput, IContentType contentType, IEditorDescriptor[] editorDescriptors)
editorInput
- the editor input for the editorcontentType
- the content type of the input or null
if not availableeditorDescriptors
- the current association for the given inputeditorDescriptors
. The order is not relevant.IEditorDescriptor[] overrideEditors(String fileName, IContentType contentType, IEditorDescriptor[] editorDescriptors)
fileName
- the name of the file for which to choose the editorcontentType
- the content type of the input or null
if not availableeditorDescriptors
- the current association for the given inputeditorDescriptors
. The order is not relevant.IEditorDescriptor overrideDefaultEditor(IEditorInput editorInput, IContentType contentType, IEditorDescriptor editorDescriptor)
Though possible, it is advised not to override an editor that has been explicitly chosen by
the user for the given input. This is the case when
IFile#getPersistentProperty(IDE.EDITOR_KEY) != null
.
editorInput
- the editor input for the editorcontentType
- the content type of the input or null
if not availableeditorDescriptor
- the current association for the given input or null
if
nonenull
if none.
Can be editorDescriptor
.IEditorDescriptor overrideDefaultEditor(String fileName, IContentType contentType, IEditorDescriptor editorDescriptor)
fileName
- the name of the file for which to choose the editorcontentType
- the content type of the input or null
if not availableeditorDescriptor
- the current association for the given input or null
if
nonenull
if none.
Can be editorDescriptor
.
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.