Exemplo n.º 1
0
 private IWidgetLocator doDragTo(ISelectionTarget target) throws WidgetSearchException {
   IClickDescription click = target.getClickDescription();
   IWidgetLocator locator = target.getWidgetLocator();
   Widget w = findWidget(locator);
   // drag and wrapper the result in a widget reference
   Widget dropTarget = click.isDefaultCenterClick() ? dragTo(w) : dragTo(w, click.x(), click.y());
   return WidgetReference.create(dropTarget);
 }
Exemplo n.º 2
0
  IWidgetLocator doWidgetMouseMove(ISelectionTarget target) throws WidgetSearchException {
    IClickDescription click = target.getClickDescription();
    IWidgetLocator locator = target.getWidgetLocator();

    Widget targetWidget = findWidget(locator);
    // move and wrapper target
    if (click.isDefaultCenterClick()) mouseMove(targetWidget);
    else mouseMove(targetWidget, click.x(), click.y());
    return WidgetReference.create(targetWidget);
  }