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
ConstructorDescriptionSearchEditorOpener
(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 boolean
Returns 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:EditorOpener
Returns whether editors should be reused.Default implementation returns
false
.- Overrides:
shouldReuseEditor
in classEditorOpener
- Returns:
true
if editors should be reused, andfalse
otherwise- See Also:
-