Examples of SafeRunnable


Examples of org.eclipse.jface.util.SafeRunnable

   * @see org.eclipse.jface.window.Window#close()
   */
  public boolean close() {
   
    //Do this is in a SafeRunnable as it may run client code
    SafeRunnable runnable = new SafeRunnable(){
      /* (non-Javadoc)
       * @see org.eclipse.core.runtime.ISafeRunnable#run()
       */
      public void run() throws Exception {
        List nodes = preferenceManager.getElements(PreferenceManager.PRE_ORDER);
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

   * framework method sends <code>performOk</code> to all pages of the
   * preference dialog, then calls <code>handleSave</code> on this dialog to
   * save any state, and then calls <code>close</code> to close this dialog.
   */
  protected void okPressed() {
    SafeRunnable.run(new SafeRunnable() {
      private boolean errorOccurred;

      /*
       * (non-Javadoc)
       *
 
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

     */
    protected void firePageChanged(final PageChangedEvent event) {
        Object[] listeners = pageChangedListeners.getListeners();
        for (int i = 0; i < listeners.length; i++) {
            final IPageChangedListener l = (IPageChangedListener) listeners[i];
            SafeRunnable.run(new SafeRunnable() {
                public void run() {
                    l.pageChanged(event);
                }
            });
        }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

     */
    protected void fireSelectionChanged(final SelectionChangedEvent event) {
        Object[] listeners = selectionChangedListeners.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

Examples of org.eclipse.jface.util.SafeRunnable

   */
  protected void fireApplyEditorValue() {
    Object[] array = listeners.getListeners();
    for (int i = 0; i < array.length; i++) {
      final ICellEditorListener l = (ICellEditorListener) array[i];
      SafeRunnable.run(new SafeRunnable() {
        public void run() {
          l.applyEditorValue();
        }
      });
    }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

   */
  protected void fireCancelEditor() {
    Object[] array = listeners.getListeners();
    for (int i = 0; i < array.length; i++) {
      final ICellEditorListener l = (ICellEditorListener) array[i];
      SafeRunnable.run(new SafeRunnable() {
        public void run() {
          l.cancelEditor();
        }
      });
    }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

  protected void fireEditorValueChanged(final boolean oldValidState,
      final boolean newValidState) {
    Object[] array = listeners.getListeners();
    for (int i = 0; i < array.length; i++) {
      final ICellEditorListener l = (ICellEditorListener) array[i];
      SafeRunnable.run(new SafeRunnable() {
        public void run() {
          l.editorValueChanged(oldValidState, newValidState);
        }
      });
    }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

   */
  protected void fireEnablementChanged(final String actionId) {
    Object[] array = propertyChangeListeners.getListeners();
    for (int i = 0; i < array.length; i++) {
      final IPropertyChangeListener l = (IPropertyChangeListener) array[i];
      SafeRunnable.run(new SafeRunnable() {
        public void run() {
          l.propertyChange(new PropertyChangeEvent(this, actionId,
              null, null));
        }
      });
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

     */
    private void fireCheckStateChanged(final CheckStateChangedEvent event) {
        Object[] array = checkStateListeners.getListeners();
        for (int i = 0; i < array.length; i++) {
            final ICheckStateListener l = (ICheckStateListener) array[i];
            SafeRunnable.run(new SafeRunnable() {
                public void run() {
                    l.checkStateChanged(event);
                }
            });
        }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

     */
    protected void fireCheckStateChanged(final CheckStateChangedEvent event) {
        Object[] array = checkStateListeners.getListeners();
        for (int i = 0; i < array.length; i++) {
            final ICheckStateListener l = (ICheckStateListener) array[i];
            SafeRunnable.run(new SafeRunnable() {
                public void run() {
                    l.checkStateChanged(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.