Package org.eclipse.handly.ui.search
Class SearchEditorOpener
java.lang.Object
org.eclipse.handly.ui.EditorOpener
org.eclipse.handly.ui.search.SearchEditorOpener
A helper class for opening a search match in an editor.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchEditorOpener(org.eclipse.ui.IWorkbenchPage page, EditorUtility editorUtility) Constructs an editor opener with the given workbench page and the given editor utility. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanReturns whether editors should be reused.Methods inherited from class org.eclipse.handly.ui.EditorOpener
getEditorUtility, getWorkbenchPage, open
-
Constructor Details
-
SearchEditorOpener
Constructs an editor opener with the given workbench page and the given editor utility.- Parameters:
page- the workbench page to open the editor in (notnull)editorUtility- the editor utility for this opener (notnull)
-
-
Method Details
-
shouldReuseEditor
protected boolean shouldReuseEditor()Description copied from class:EditorOpenerReturns whether editors should be reused.Default implementation returns
false.- Overrides:
shouldReuseEditorin classEditorOpener- Returns:
trueif editors should be reused, andfalseotherwise- See Also:
-