Class ExpiringGraphSelectionProviderView
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.ViewPart
-
- com.ensoftcorp.open.commons.utilities.selection.GraphSelectionListenerView
-
- com.ensoftcorp.open.commons.utilities.selection.ExpiringGraphSelectionProviderView
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.core.runtime.IExecutableExtension
,org.eclipse.ui.IPersistable
,org.eclipse.ui.IViewPart
,org.eclipse.ui.IWorkbenchPart
,org.eclipse.ui.IWorkbenchPart2
,org.eclipse.ui.IWorkbenchPart3
,org.eclipse.ui.part.IWorkbenchPartOrientation
public abstract class ExpiringGraphSelectionProviderView extends GraphSelectionListenerView
-
-
Constructor Summary
Constructors Constructor Description ExpiringGraphSelectionProviderView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disableGraphSelectionProvider()
Disables graph selection providersvoid
enableGraphSelectionProvider()
Enables graph selection providersboolean
isGraphSelectionProviderEnabled()
Returns true if the graph selection provider is enabled, false otherwisevoid
refreshSelection()
If an index exists and a selection has previously been made this replays the last selection eventvoid
registerGraphHandlers()
This method should be invoked at the end of the ViewPart's createPartControl(Composite parent) method.void
setSelection(com.ensoftcorp.atlas.core.query.Q selection)
If an index exists then the given selection event will be firedvoid
toggleGraphSelectionProvider()
Toggles the graph selection provider state from enabled to disabled or vice versa.-
Methods inherited from class com.ensoftcorp.open.commons.utilities.selection.GraphSelectionListenerView
disableGraphSelectionListener, dispose, enableGraphSelectionListener, getSelection, indexBecameAccessible, indexBecameUnaccessible, indexExists, isGraphSelectionListenerEnabled, selectionChanged, toggleGraphSelectionListener
-
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationData
-
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, createPartControl, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setFocus, setPartProperty, showBusy
-
-
-
-
Method Detail
-
registerGraphHandlers
public void registerGraphHandlers()
This method should be invoked at the end of the ViewPart's createPartControl(Composite parent) method. Listener's will automatically be cleaned up when the view is disposed.- Overrides:
registerGraphHandlers
in classGraphSelectionListenerView
-
enableGraphSelectionProvider
public void enableGraphSelectionProvider()
Enables graph selection providers
-
disableGraphSelectionProvider
public void disableGraphSelectionProvider()
Disables graph selection providers
-
isGraphSelectionProviderEnabled
public boolean isGraphSelectionProviderEnabled()
Returns true if the graph selection provider is enabled, false otherwise
-
toggleGraphSelectionProvider
public void toggleGraphSelectionProvider()
Toggles the graph selection provider state from enabled to disabled or vice versa.
-
refreshSelection
public void refreshSelection()
If an index exists and a selection has previously been made this replays the last selection event
-
setSelection
public void setSelection(com.ensoftcorp.atlas.core.query.Q selection)
If an index exists then the given selection event will be fired- Parameters:
selection
-
-
-