Package org.eclipse.compare.internal
Class CompareLinkHelper
java.lang.Object
org.eclipse.compare.internal.CompareLinkHelper
- All Implemented Interfaces:
ILinkHelper
Links CompareEditorInput to IFiles in the CommonNavigator.
- Since:
- 3.8
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateEditor
(IWorkbenchPage aPage, IStructuredSelection aSelection) Activate the correct editor for aSelection.findSelection
(IEditorInput anInput) Determine the correct structured selection for the Common Navigator given anInput.
-
Constructor Details
-
CompareLinkHelper
public CompareLinkHelper()
-
-
Method Details
-
findSelection
Description copied from interface:ILinkHelper
Determine the correct structured selection for the Common Navigator given anInput.
- Specified by:
findSelection
in interfaceILinkHelper
- Parameters:
anInput
- An Editor input- Returns:
- A selection to be set against the
CommonViewer
-
activateEditor
Description copied from interface:ILinkHelper
Activate the correct editor for aSelection.
- Specified by:
activateEditor
in interfaceILinkHelper
- Parameters:
aPage
- A WorkbenchPage to use for editor location and activationaSelection
- The current selection from theCommonViewer
-