public interface IEditorMatchingStrategy
IWorkbenchPage.openEditor(IEditorInput, String, boolean)
and
IWorkbenchPage.findEditor(IEditorInput)
.Modifier and Type | Method and Description |
---|---|
boolean |
matches(IEditorReference editorRef,
IEditorInput input)
Returns whether the editor represented by the given editor reference
matches the given editor input.
|
boolean matches(IEditorReference editorRef, IEditorInput input)
Implementations should inspect the given editor input first,
and try to reject it early before calling IEditorReference.getEditorInput()
,
since that method may be expensive.
editorRef
- the editor reference to match againstinput
- the editor input to matchtrue
if the editor matches the given editor input,
false
if it does not match
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.