Class 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 Detail

      • ExpiringGraphSelectionProvider

        public ExpiringGraphSelectionProvider()
    • Method Detail

      • getSelection

        public org.eclipse.jface.viewers.ISelection getSelection()
        Specified by:
        getSelection in interface org.eclipse.jface.viewers.ISelectionProvider
      • addSelectionChangedListener

        public void addSelectionChangedListener​(org.eclipse.jface.viewers.ISelectionChangedListener selectionChangedListener)
        Specified by:
        addSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider
      • removeSelectionChangedListener

        public void removeSelectionChangedListener​(org.eclipse.jface.viewers.ISelectionChangedListener selectionChangedListener)
        Specified by:
        removeSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider
      • setSelection

        public void setSelection​(org.eclipse.jface.viewers.ISelection selection)
        Specified by:
        setSelection in interface org.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()