Package org.eclipse.jface.viewers

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


        protected void fireSelectionChanged(SelectionChangedEvent event) {
            Object[] listeners = fListeners.getListeners();
            for (int i = 0; i < listeners.length; i++) {
                ISelectionChangedListener listener = (ISelectionChangedListener) listeners[i];
                listener.selectionChanged(event);
            }
        }
    }

}
View Full Code Here


        final SelectionChangedEvent event = new SelectionChangedEvent(this,
                getSelection());
        final Object[] listeners = fSelectionListeners.getListeners();
        for (final Object element : listeners) {
            final ISelectionChangedListener listener = (ISelectionChangedListener) element;
            listener.selectionChanged(event);
        }
    }

    /**
     * Sorts by VM name.
View Full Code Here

        final SelectionChangedEvent event = new SelectionChangedEvent(this, getSelection());
        for( ISelectionChangedListener listener : selectionChangeListeners ){
            final ISelectionChangedListener l = listener;
            SafeRunnable.run(new SafeRunnable() {
                public void run() {
                    l.selectionChanged(event);
                }
            });
        }
    }
    public void setSelection( ISelection selection ) {
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

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

  private void fireEventChange(final SelectionChangedEvent event, Object[] listeners) {
    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

       
        for (int i = 0; i < listenersArray.length; i++) {
            final ISelectionChangedListener l = (ISelectionChangedListener) listenersArray[i];
            Platform.run(new SafeRunnable() {
                public void run() {
                    l.selectionChanged(e);
                }
            });
    }
    }
View Full Code Here

      final ISelectionChangedListener selectionChangedListener =
              (ISelectionChangedListener) listener;
     
      SafeRunner.run(new SafeRunnable() {
        public void run() {
          selectionChangedListener.selectionChanged(event);
        }
      });
    }
  }
 
View Full Code Here

            for( Object item : listeners.getListeners() ){
                ISelectionChangedListener listener = (ISelectionChangedListener) item;
                if( event == null ){
                    event = new SelectionChangedEvent( this, this.selection);
                }
                listener.selectionChanged( event );               
            }
        }
    }
}
View Full Code Here

            Object[] listeners = getListeners();
            for( int i = 0; i < listeners.length; ++i ) {
                final ISelectionChangedListener l = (ISelectionChangedListener) listeners[i];
                Platform.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.