Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.ISelectionChangedListener.selectionChanged()


    Object[] listeners = _postSelectionChangedListeners.getListeners();
    for (int i = 0; i < listeners.length; ++i) {
      final ISelectionChangedListener l = (ISelectionChangedListener) listeners[i];
      SafeRunnable.run(new SafeRunnable() {
        public void run() {
          l.selectionChanged(event);
        }
      });
    }
  }
}
View Full Code Here


    valueTable.addPostSelectionChangedListener(selectionChangedListener);
    addButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        addTag();
        valueTable.getTable().setSelection(fTaskTags.length - 1);
        selectionChangedListener.selectionChanged(null);
      }
    });
    editButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        int i = valueTable.getTable().getSelectionIndex();
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        int i = valueTable.getTable().getSelectionIndex();
        editTag(i);
        if (i >= 0) {
          valueTable.getTable().setSelection(i);
          selectionChangedListener.selectionChanged(null);
        }
      }
    });
    removeButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
View Full Code Here

      public void doubleClick(DoubleClickEvent event) {
        int i = valueTable.getTable().getSelectionIndex();
        editTag(i);
        if (i >= 0) {
          valueTable.getTable().setSelection(i);
          selectionChangedListener.selectionChanged(null);
        }
      }
    });

    valueTable.setInput(fTaskTags);
View Full Code Here

      Object[] listeners = listenerList.getListeners();
      for (int i = 0; i < listeners.length; ++i) {
        final ISelectionChangedListener l = (ISelectionChangedListener) listeners[i];
        SafeRunner.run(new SafeRunnable() {
          public void run() {
            l.selectionChanged(event);
          }
        });
      }
      isFiringSelection = false;
    }
View Full Code Here

    Object[] listeners = selectionChangedListeners.getListeners();
    for (int i = 0; i < listeners.length; ++i) {
      final ISelectionChangedListener l = (ISelectionChangedListener) listeners[i];
      SafeRunner.run(new SafeRunnable() {
        public void run() {
          l.selectionChanged(event);
        }
      });
    }
  }
View Full Code Here

    List listeners= fPostSelectionChangedListeners;
    if (listeners != null) {
      listeners= new ArrayList(listeners);
      for (int i= 0; i < listeners.size(); i++) {
        ISelectionChangedListener l= (ISelectionChangedListener) listeners.get(i);
        l.selectionChanged(event);
      }
    }
  }

  /**
 
View Full Code Here

  private void fireSelectionEvent() {
    SelectionChangedEvent evt = new SelectionChangedEvent(this, getSelection());
    for (Iterator i = listeners.iterator(); i.hasNext();) {
      ISelectionChangedListener l = (ISelectionChangedListener) i.next();
      l.selectionChanged(evt);
    }
  }
 
  // ISelectionProvider interface
View Full Code Here

  private void fireSelectionEvent() {
    SelectionChangedEvent evt = new SelectionChangedEvent(this, getSelection());
    for (Iterator i = listeners.iterator(); i.hasNext();) {
      ISelectionChangedListener l = (ISelectionChangedListener) i.next();
      l.selectionChanged(evt);
    }
  }
 
  // ISelectionProvider interface
View Full Code Here

  private void fireSelectionEvent() {
    SelectionChangedEvent evt = new SelectionChangedEvent(this, getSelection());
    for (Iterator i = listeners.iterator(); i.hasNext();) {
      ISelectionChangedListener l = (ISelectionChangedListener) i.next();
      l.selectionChanged(evt);
    }
  }
 
  // ISelectionProvider interface
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.