public abstract class OutlineLinkingHelper
extends org.eclipse.ui.OpenAndLinkWithEditorHelper
LinkWithEditorContribution| Constructor and Description |
|---|
OutlineLinkingHelper(ICommonOutlinePage outlinePage)
Creates a new linking helper for the given outline page.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.eclipse.jface.viewers.ISelection selection) |
void |
dispose() |
ICommonOutlinePage |
getOutlinePage()
Returns the outline page of this linking helper.
|
protected abstract void |
linkToEditor(org.eclipse.jface.viewers.ISelection selection)
Tells to link the given outline selection to the editor.
|
protected abstract void |
linkToOutline(org.eclipse.jface.viewers.ISelection selection)
Tells to link the given editor selection to the outline.
|
protected void |
open(org.eclipse.jface.viewers.ISelection selection,
boolean activate) |
void |
setLinkWithEditor(boolean enabled) |
public OutlineLinkingHelper(ICommonOutlinePage outlinePage)
outlinePage - not nullpublic final ICommonOutlinePage getOutlinePage()
null)public void dispose()
dispose in class org.eclipse.ui.OpenAndLinkWithEditorHelperpublic void setLinkWithEditor(boolean enabled)
setLinkWithEditor in class org.eclipse.ui.OpenAndLinkWithEditorHelperprotected void activate(org.eclipse.jface.viewers.ISelection selection)
This implementation delegates to linkToEditor(ISelection).
activate in class org.eclipse.ui.OpenAndLinkWithEditorHelperprotected void open(org.eclipse.jface.viewers.ISelection selection,
boolean activate)
This implementation delegates to linkToEditor(ISelection).
open in class org.eclipse.ui.OpenAndLinkWithEditorHelperprotected abstract void linkToEditor(org.eclipse.jface.viewers.ISelection selection)
linkToEditor in class org.eclipse.ui.OpenAndLinkWithEditorHelperselection - the outline selection
(may be null or empty)protected abstract void linkToOutline(org.eclipse.jface.viewers.ISelection selection)
selection - the editor selection
(may be null or empty)Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0