Package org.eclipse.jface.util

Examples of org.eclipse.jface.util.SafeRunnable


      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


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

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

  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 : selectionChangedListeners.getListeners()) {
     
      final ISelectionChangedListener selectionChangedListener =
              (ISelectionChangedListener) listener;
     
      SafeRunner.run(new SafeRunnable() {
        public void run() {
          selectionChangedListener.selectionChanged(event);
        }
      });
    }
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.