Class ExpiringGraphSelectionProvider
- java.lang.Object
-
- com.ensoftcorp.open.commons.utilities.selection.ExpiringGraphSelectionProvider
-
- All Implemented Interfaces:
org.eclipse.jface.viewers.ISelectionProvider
public class ExpiringGraphSelectionProvider extends java.lang.Object implements org.eclipse.jface.viewers.ISelectionProvider
This is a modified graph selection provider that clears out selection events after setting them the first time. This is really just a paranoid implementation that is useful for dealing with buggy behaviors such as SWT_AWT bridges.- Author:
- Ben Holland
-
-
Constructor Summary
Constructors Constructor Description ExpiringGraphSelectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener selectionChangedListener)
void
disable()
void
enable()
org.eclipse.jface.viewers.ISelection
getSelection()
boolean
isEnabled()
void
removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener selectionChangedListener)
void
setSelection(com.ensoftcorp.atlas.core.query.Q selection)
void
setSelection(org.eclipse.jface.viewers.ISelection selection)
-
-
-
Method Detail
-
getSelection
public org.eclipse.jface.viewers.ISelection getSelection()
- Specified by:
getSelection
in interfaceorg.eclipse.jface.viewers.ISelectionProvider
-
addSelectionChangedListener
public void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener selectionChangedListener)
- Specified by:
addSelectionChangedListener
in interfaceorg.eclipse.jface.viewers.ISelectionProvider
-
removeSelectionChangedListener
public void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener selectionChangedListener)
- Specified by:
removeSelectionChangedListener
in interfaceorg.eclipse.jface.viewers.ISelectionProvider
-
setSelection
public void setSelection(org.eclipse.jface.viewers.ISelection selection)
- Specified by:
setSelection
in interfaceorg.eclipse.jface.viewers.ISelectionProvider
-
setSelection
public void setSelection(com.ensoftcorp.atlas.core.query.Q selection)
-
isEnabled
public boolean isEnabled()
-
enable
public void enable()
-
disable
public void disable()
-
-