Package org.eclipse.jface.viewers

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


        Iterator<ISelectionChangedListener> listenerIterator = listeners.iterator();

        while (listenerIterator.hasNext()) {
          ISelectionChangedListener listener = listenerIterator.next();
          SelectionChangedEvent event = new SelectionChangedEvent(this, selection);
          listener.selectionChanged(event);
        }
      }
    }
  }
}
View Full Code Here


  private void fireSelectionChanged() {
    SelectionChangedEvent event = new SelectionChangedEvent(this, getSelection());
    Object[] listeners = fSelectionListeners.getListeners();
    for (int i = 0; i < listeners.length; i++) {
      ISelectionChangedListener listener = (ISelectionChangedListener)listeners[i];
      listener.selectionChanged(event);
   
  }

  public void createControl(Composite ancestor) {
    Font font = ancestor.getFont();
View Full Code Here

    private void fireSelectionChanged()
    {
        for (final Iterator it = _selectionListeners.iterator(); it.hasNext();)
        {
            ISelectionChangedListener listener = (ISelectionChangedListener) it.next();
            listener.selectionChanged(new SelectionChangedEvent(this, _selection));
        }
    }

    public void selectionChanged(SelectionChangedEvent event) {
        ISelection selection = event.getSelection();
View Full Code Here

      isFiringSelection = true;
      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 = 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

      isFiringSelection = true;
      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

    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 = this._listeners.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

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.