Package org.eclipse.ui

Examples of org.eclipse.ui.IActionDelegate2


    final IActionDelegate delegate = getDelegate();
    if (delegate instanceof IWorkbenchWindowActionDelegate) {
      final IWorkbenchWindowActionDelegate workbenchWindowDelegate = (IWorkbenchWindowActionDelegate) delegate;
      workbenchWindowDelegate.dispose();
    } else if (delegate instanceof IActionDelegate2) {
      final IActionDelegate2 delegate2 = (IActionDelegate2) delegate;
      delegate2.dispose();
    }
  }
View Full Code Here


      // Decide what type of delegate we have.
      if ((delegate instanceof IActionDelegate2)
          && (trigger instanceof Event)) {
        // This supports Eclipse 2.1 to Eclipse 3.1.
        final IActionDelegate2 delegate2 = (IActionDelegate2) delegate;
        final Event triggeringEvent = (Event) trigger;
        delegate2.runWithEvent(action, triggeringEvent);
      } else if ((delegate instanceof IActionDelegateWithEvent)
          && (trigger instanceof Event)) {
        // This supports Eclipse 2.0
        final IActionDelegateWithEvent delegateWithEvent = (IActionDelegateWithEvent) delegate;
        final Event triggeringEvent = (Event) trigger;
View Full Code Here

      }

      public final void run() {
        // Handle IActionDelegate2
        if (delegate instanceof IActionDelegate2) {
          final IActionDelegate2 delegate2 = (IActionDelegate2) delegate;
          delegate2.init(action);
        }

        // Handle IObjectActionDelegates
        if ((objectDelegate != null) && (activePart != null)) {
          objectDelegate.setActivePart(action, activePart);
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IActionDelegate2

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.