Examples of runWithEvent()


Examples of org.eclipse.jface.action.IAction.runWithEvent()

    }
    // run action
    {
      Event event = new Event();
      event.stateMask = SWT.CTRL;
      action.runWithEvent(event);
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
View Full Code Here

Examples of org.eclipse.jface.action.IAction.runWithEvent()

                if (action == fOpenConsoleAction) {
                  Event event= new Event();
                  event.widget= ti;
                  event.x= e.x;
                  event.y= e.y;
                  action.runWithEvent(event);
                }
              }
            }
          }
        });
View Full Code Here

Examples of org.eclipse.jface.action.IAction.runWithEvent()

              event.x= e.x;
              event.y= e.y;
              event.button= e.button;
              event.stateMask= e.stateMask;
              event.count= e.count;
              action.runWithEvent(event);
            }
          }
        }

        public void mouseUp(final MouseEvent e) {
View Full Code Here

Examples of org.eclipse.ui.IActionDelegate2.runWithEvent()

      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

Examples of org.eclipse.ui.IActionDelegateWithEvent.runWithEvent()

      } else if ((delegate instanceof IActionDelegateWithEvent)
          && (trigger instanceof Event)) {
        // This supports Eclipse 2.0
        final IActionDelegateWithEvent delegateWithEvent = (IActionDelegateWithEvent) delegate;
        final Event triggeringEvent = (Event) trigger;
        delegateWithEvent.runWithEvent(action, triggeringEvent);
      } else {
        delegate.run(action);
      }
    }
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.