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 |
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 null
public final ICommonOutlinePage getOutlinePage()
null
)public void dispose()
dispose
in class org.eclipse.ui.OpenAndLinkWithEditorHelper
public void setLinkWithEditor(boolean enabled)
setLinkWithEditor
in class org.eclipse.ui.OpenAndLinkWithEditorHelper
protected void activate(org.eclipse.jface.viewers.ISelection selection)
activate
in class org.eclipse.ui.OpenAndLinkWithEditorHelper
protected void open(org.eclipse.jface.viewers.ISelection selection, boolean activate)
open
in class org.eclipse.ui.OpenAndLinkWithEditorHelper
protected abstract void linkToOutline(org.eclipse.jface.viewers.ISelection selection)
selection
- the editor selection
(may be null
or empty)