|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.common.types.shared.jdt38.OriginalEditorSelector
public class OriginalEditorSelector
Constructor Summary | |
---|---|
OriginalEditorSelector()
|
Method Summary | |
---|---|
org.eclipse.ui.IEditorDescriptor |
findXbaseEditor(org.eclipse.ui.IEditorInput editorInput)
|
org.eclipse.ui.IEditorDescriptor |
overrideDefaultEditor(org.eclipse.ui.IEditorInput editorInput,
org.eclipse.core.runtime.content.IContentType contentType,
org.eclipse.ui.IEditorDescriptor editorDescriptor)
Allows to override the given editor descriptor for the given editor input with a different one. |
org.eclipse.ui.IEditorDescriptor |
overrideDefaultEditor(java.lang.String fileName,
org.eclipse.core.runtime.content.IContentType contentType,
org.eclipse.ui.IEditorDescriptor editorDescriptor)
Allows to override the given editor descriptor for the given input with a different one. |
org.eclipse.ui.IEditorDescriptor[] |
overrideEditors(org.eclipse.ui.IEditorInput editorInput,
org.eclipse.core.runtime.content.IContentType contentType,
org.eclipse.ui.IEditorDescriptor[] editorDescriptors)
Allows to override the given editor descriptors for the given editor input with different ones. |
org.eclipse.ui.IEditorDescriptor[] |
overrideEditors(java.lang.String fileName,
org.eclipse.core.runtime.content.IContentType contentType,
org.eclipse.ui.IEditorDescriptor[] editorDescriptors)
Allows to override the given editor descriptors for the given file name with different ones. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OriginalEditorSelector()
Method Detail |
---|
public org.eclipse.ui.IEditorDescriptor[] overrideEditors(org.eclipse.ui.IEditorInput editorInput, org.eclipse.core.runtime.content.IContentType contentType, org.eclipse.ui.IEditorDescriptor[] editorDescriptors)
IEditorAssociationOverride
overrideEditors
in interface IEditorAssociationOverride
editorInput
- the editor input for the editorcontentType
- the content type of the input or null
if not availableeditorDescriptors
- the current association for the given input
editorDescriptors
. The order is not relevant.public org.eclipse.ui.IEditorDescriptor[] overrideEditors(java.lang.String fileName, org.eclipse.core.runtime.content.IContentType contentType, org.eclipse.ui.IEditorDescriptor[] editorDescriptors)
IEditorAssociationOverride
overrideEditors
in interface IEditorAssociationOverride
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 input
editorDescriptors
. The order is not relevant.public org.eclipse.ui.IEditorDescriptor overrideDefaultEditor(org.eclipse.ui.IEditorInput editorInput, org.eclipse.core.runtime.content.IContentType contentType, org.eclipse.ui.IEditorDescriptor editorDescriptor)
IEditorAssociationOverride
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
.
overrideDefaultEditor
in interface IEditorAssociationOverride
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
none
null
if none.
Can be editorDescriptor
.public org.eclipse.ui.IEditorDescriptor overrideDefaultEditor(java.lang.String fileName, org.eclipse.core.runtime.content.IContentType contentType, org.eclipse.ui.IEditorDescriptor editorDescriptor)
IEditorAssociationOverride
overrideDefaultEditor
in interface IEditorAssociationOverride
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
none
null
if none.
Can be editorDescriptor
.public org.eclipse.ui.IEditorDescriptor findXbaseEditor(org.eclipse.ui.IEditorInput editorInput)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |