Class EditorOutlinePopupHost
java.lang.Object
org.eclipse.handly.ui.quickoutline.EditorOutlinePopupHost
- All Implemented Interfaces:
IOutlinePopupHost
An editor-based outline popup host.
-
Constructor Summary
ConstructorsConstructorDescriptionEditorOutlinePopupHost(org.eclipse.ui.IEditorPart editor) Creates an outline popup host based on the given editor. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.ControlReturns the SWT control for this host, ornullif the control is no longer available or has yet to be created.org.eclipse.ui.IEditorPartReturns the editor underlying this host.org.eclipse.ui.IEditorInputReturns the editor input for this host, ornullif none.org.eclipse.jface.viewers.ISelectionProviderReturns the selection provider of this host.
-
Constructor Details
-
EditorOutlinePopupHost
public EditorOutlinePopupHost(org.eclipse.ui.IEditorPart editor) Creates an outline popup host based on the given editor.- Parameters:
editor- notnull
-
-
Method Details
-
getEditor
public org.eclipse.ui.IEditorPart getEditor()Returns the editor underlying this host.- Returns:
- the underlying editor (never
null)
-
getControl
public org.eclipse.swt.widgets.Control getControl()Description copied from interface:IOutlinePopupHostReturns the SWT control for this host, ornullif the control is no longer available or has yet to be created.- Specified by:
getControlin interfaceIOutlinePopupHost- Returns:
- the SWT control or
null
-
getSelectionProvider
public org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()Description copied from interface:IOutlinePopupHostReturns the selection provider of this host.- Specified by:
getSelectionProviderin interfaceIOutlinePopupHost- Returns:
- the selection provider (never
null)
-
getEditorInput
public org.eclipse.ui.IEditorInput getEditorInput()Description copied from interface:IOutlinePopupHostReturns the editor input for this host, ornullif none.- Specified by:
getEditorInputin interfaceIOutlinePopupHost- Returns:
- the editor input or
null
-