Package org.eclipse.ui.ide
Interface IUnassociatedEditorStrategy
-
public interface IUnassociatedEditorStrategyThis interface represents a strategy for choosing an IEditorDescriptor for a given file name. It's used by the org.eclipse.ui.ide.unassociatedEditorStrategy extension point.- Since:
- 3.12
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IEditorDescriptorgetEditorDescriptor(String fileName, IEditorRegistry editorRegistry)
-
-
-
Method Detail
-
getEditorDescriptor
IEditorDescriptor getEditorDescriptor(String fileName, IEditorRegistry editorRegistry) throws CoreException, OperationCanceledException
- Parameters:
fileName- Name of the file to openeditorRegistry- the IDE editor registry- Returns:
- an
IEditorDescriptorfor editor to use to open this file, or null if no editor was resolved for that file name. - Throws:
CoreException- in case descriptor lookup fails with an errorOperationCanceledException- in case descriptor lookup was cancelled by the user
-
-