Examples of SafeRunnable


Examples of at.bestsolution.efxclipse.jface.util.SafeRunnable

    }
    final PropertyChangeEvent event = new PropertyChangeEvent(this, name,
        oldValue, newValue);
    for (int i = 0; i < list.length; i++) {
      final IPropertyChangeListener listener = (IPropertyChangeListener) list[i];
      SafeRunner.run(new SafeRunnable(JFaceResources
          .getString("PreferenceStore.changeError")) { //$NON-NLS-1$
            public void run() {
              listener.propertyChange(event);
            }
          });
View Full Code Here

Examples of org.apache.bookkeeper.util.SafeRunnable

     * @param ctx
     * @param rc
     */
    void asyncCloseInternal(final CloseCallback cb, final Object ctx, final int rc) {
        bk.mainWorkerPool.submitOrdered(ledgerId, new SafeRunnable() {

            @Override
            public void safeRun() {
                metadata.length = length;
                // Close operation is idempotent, so no need to check if we are
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

  private void internalFireOpen(final OpenEvent event) {
    Object[] listeners = fOpenListeners.getListeners();
    for (int i = 0; i < listeners.length; ++i) {
      final IOpenListener listener = (IOpenListener) listeners[i];
      SafeRunnable.run(new SafeRunnable() {
        public void run() {
          listener.open(event);
        }
      });
    }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

  private void internalFireOpen(final OpenEvent event) {
    Object[] listeners = fOpenListeners.getListeners();
    for (int i = 0; i < listeners.length; ++i) {
      final IOpenListener listener = (IOpenListener) listeners[i];
      SafeRunnable.run(new SafeRunnable() {
        public void run() {
          listener.open(event);
        }
      });
    }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

     */
    public void addRun(final ProseRunNode run) {
        runs.add(run);
        for (Iterator all = getRunListeners().iterator(); all.hasNext();) {
            final IProseRunListener each = (IProseRunListener) all.next();
            Platform.run(new SafeRunnable() {
                public void run() throws Exception {
                    each.runAdded(run);
                }
            });
        }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

     */
    public void removeRun(final ProseRunNode run) {
        runs.remove(run);
        for (Iterator all = getRunListeners().iterator(); all.hasNext();) {
            final IProseRunListener each = (IProseRunListener) all.next();
            Platform.run(new SafeRunnable() {
                public void run() throws Exception {
                    each.runRemoved(run);
                }
            });
        }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

     * @param run Node that contains the Prose run which is unreachable
     */
    public void fireRunUnreachable(final ProseRunNode run) {
        for (Iterator all = getRunListeners().iterator(); all.hasNext();) {
            final IProseRunListener each = (IProseRunListener) all.next();
            Platform.run(new SafeRunnable() {
                public void run() throws Exception {
                    each.runUnreachable(run);
                }
            });
        }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

     * @param node Node that contains the aspect being inserted
     */
    public void fireAspectInserted(final AspectManagerNode node) {
        for (Iterator all = getRunListeners().iterator(); all.hasNext();) {
            final IProseRunListener each = (IProseRunListener) all.next();
            Platform.run(new SafeRunnable() {
                public void run() throws Exception {
                    each.aspectInserted(node);
                }
            });
        }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

     * @param node Aspect being withdawn
     */
    public void fireAspectWithdrawn(final AspectNode node) {
        for (Iterator all = getRunListeners().iterator(); all.hasNext();) {
            final IProseRunListener each = (IProseRunListener) all.next();
            Platform.run(new SafeRunnable() {
                public void run() throws Exception {
                    each.aspectWithdrawn(node);
                }
            });
        }
View Full Code Here

Examples of org.eclipse.jface.util.SafeRunnable

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