Package org.eclipse.handly.ui.outline
Class OutlineLinkingHelper
- java.lang.Object
-
- org.eclipse.ui.OpenAndLinkWithEditorHelper
-
- org.eclipse.handly.ui.outline.OutlineLinkingHelper
-
- Direct Known Subclasses:
SourceElementLinkingHelper
public abstract class OutlineLinkingHelper extends org.eclipse.ui.OpenAndLinkWithEditorHelperAn abstract base class for outline linking helpers.- See Also:
LinkWithEditorContribution
-
-
Constructor Summary
Constructors Constructor Description OutlineLinkingHelper(ICommonOutlinePage outlinePage)Creates a new linking helper for the given outline page.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidactivate(org.eclipse.jface.viewers.ISelection selection)voiddispose()ICommonOutlinePagegetOutlinePage()Returns the outline page of this linking helper.protected abstract voidlinkToEditor(org.eclipse.jface.viewers.ISelection selection)Tells to link the given outline selection to the editor.protected abstract voidlinkToOutline(org.eclipse.jface.viewers.ISelection selection)Tells to link the given editor selection to the outline.protected voidopen(org.eclipse.jface.viewers.ISelection selection, boolean activate)voidsetLinkWithEditor(boolean enabled)
-
-
-
Constructor Detail
-
OutlineLinkingHelper
public OutlineLinkingHelper(ICommonOutlinePage outlinePage)
Creates a new linking helper for the given outline page.- Parameters:
outlinePage- notnull
-
-
Method Detail
-
getOutlinePage
public final ICommonOutlinePage getOutlinePage()
Returns the outline page of this linking helper.- Returns:
- the outline page (never
null)
-
dispose
public void dispose()
- Overrides:
disposein classorg.eclipse.ui.OpenAndLinkWithEditorHelper
-
setLinkWithEditor
public void setLinkWithEditor(boolean enabled)
- Overrides:
setLinkWithEditorin classorg.eclipse.ui.OpenAndLinkWithEditorHelper
-
activate
protected void activate(org.eclipse.jface.viewers.ISelection selection)
This implementation delegates to
linkToEditor(ISelection).- Specified by:
activatein classorg.eclipse.ui.OpenAndLinkWithEditorHelper
-
open
protected void open(org.eclipse.jface.viewers.ISelection selection, boolean activate)This implementation delegates to
linkToEditor(ISelection).- Specified by:
openin classorg.eclipse.ui.OpenAndLinkWithEditorHelper
-
linkToEditor
protected abstract void linkToEditor(org.eclipse.jface.viewers.ISelection selection)
Tells to link the given outline selection to the editor.- Overrides:
linkToEditorin classorg.eclipse.ui.OpenAndLinkWithEditorHelper- Parameters:
selection- the outline selection (may benullor empty)
-
linkToOutline
protected abstract void linkToOutline(org.eclipse.jface.viewers.ISelection selection)
Tells to link the given editor selection to the outline.- Parameters:
selection- the editor selection (may benullor empty)
-
-