Package org.eclipse.jface.util

Examples of org.eclipse.jface.util.SafeRunnable


  protected void fireRemovedFeatureStructure(final FeatureStructure annotation) {
    for (Object listener : mListener.getListeners()) {
     
      final ICasDocumentListener documentListener = (ICasDocumentListener) listener;
     
      SafeRunner.run(new SafeRunnable() {
        public void run() {
          documentListener.removed(annotation);
        }
      });
    }
View Full Code Here


  protected void fireRemovedFeatureStructure(final Collection<? extends FeatureStructure> annotations) {
    for (Object listener : mListener.getListeners()) {
     
      final ICasDocumentListener documentListener = (ICasDocumentListener) listener;
     
      SafeRunner.run(new SafeRunnable() {
        public void run() {
          documentListener.removed(Collections.unmodifiableCollection(annotations));
        }
      });
    }
View Full Code Here

  protected void fireUpdatedFeatureStructure(final FeatureStructure annotation) {
    for (Object listener : mListener.getListeners()) {
     
      final ICasDocumentListener documentListener = (ICasDocumentListener) listener;
     
      SafeRunner.run(new SafeRunnable() {
        public void run() {
          documentListener.updated(annotation);
        }
      });
    }
View Full Code Here

  protected void fireUpdatedFeatureStructure(final Collection<? extends FeatureStructure> annotations) {
    for (Object listener : mListener.getListeners()) {
     
      final ICasDocumentListener documentListener = (ICasDocumentListener) listener;
     
      SafeRunner.run(new SafeRunnable() {
        public void run() {
          documentListener.updated(Collections.unmodifiableCollection(annotations));
        }
      });
    }
View Full Code Here

  protected void fireChanged() {
    for (Object listener : mListener.getListeners()) {
     
      final ICasDocumentListener documentListener = (ICasDocumentListener) listener;
     
      SafeRunner.run(new SafeRunnable() {
        public void run() {
          documentListener.changed();
        }
      });
    }
View Full Code Here

  protected void fireViewChanged(final String oldViewName, final String newViewName) {
    for (Object listener : mListener.getListeners()) {
     
      final ICasDocumentListener documentListener = (ICasDocumentListener) listener;
     
      SafeRunner.run(new SafeRunnable() {
        public void run() {
          documentListener.viewChanged(oldViewName, newViewName);
        }
      });
    }
View Full Code Here

      for (Object listener : mEditorInputListener.getListeners()) {
       
        final ICasEditorInputListener inputListener =
                (ICasEditorInputListener) listener;
       
        SafeRunner.run(new SafeRunnable() {
          public void run() {
            inputListener.casDocumentChanged(oldInput, oldDocument, input, newDocument);
          }
        });
      }
View Full Code Here

               */
              float feedbackFloat = getHeightInItem(event);

              final DragNodeCommand command = new DragNodeCommand(event.item.getData(), feedbackFloat, event.operations, event.detail, selection.toList(), treeViewer);
              if (command != null && command.canExecute()) {
                SafeRunnable.run(new SafeRunnable() {
                  public void run() throws Exception {
                    command.execute();
                  }
                });
              }
View Full Code Here

    // fire the event
    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

    public void firePerspectiveActivated(final IWorkbenchPage page,
            final IPerspectiveDescriptor perspective) {
        Object[] array = getListeners();
        for (int nX = 0; nX < array.length; nX++) {
            final IPerspectiveListener l = (IPerspectiveListener) array[nX];
            fireEvent(new SafeRunnable() {
                public void run() {
                    l.perspectiveActivated(page, perspective);
                }
            }, l, perspective, "activated::"); //$NON-NLS-1$
        }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.util.SafeRunnable

Copyright © 2018 www.massapicom. 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.