Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Tracker.open()


    // Ignore any deactivate events caused by opening the tracker.
    // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=120656
    boolean oldListenToDeactivate = listenToDeactivate;
    listenToDeactivate = false;
    if (tracker.open()) {
      if (!shell.isDisposed()) {
        shell.setBounds(tracker.getRectangles()[0]);
      }
    }
    tracker.dispose();
View Full Code Here


              tracker.setRectangles(new Rectangle[]
                {
                  new Rectangle(e.x, e.y, 16, 16),
                });

              boolean rb = tracker.open();

              if (rb)
                {
                Rectangle[] tabrect = tracker.getRectangles();
View Full Code Here

              tracker.setRectangles(new Rectangle[]
                {
                  new Rectangle(e.x, e.y, 16, 16),
                });

              boolean rb = tracker.open();

              if (rb)
                {
                Rectangle[] tabrect = tracker.getRectangles();
View Full Code Here

              tracker.setRectangles(new Rectangle[]
                {
                  new Rectangle(e.x, e.y, 16, 16),
                });

              boolean rb = tracker.open();

              if (rb)
                {
                Rectangle[] tabrect = tracker.getRectangles();
View Full Code Here

        if (shell != null) {
            shell.setCapture(true);
        }

        // Run tracker until mouse up occurs or escape key pressed.
        boolean trackingOk = tracker.open();

        // HACK:
        // Release the mouse now
        if (shell != null) {
            shell.setCapture(false);
View Full Code Here

    {
        if (event.button == 1 && event.stateMask == SWT.MOD1)
        {
            Tracker tracker = new Tracker(chart.getPlotArea(), SWT.RESIZE);
            tracker.setRectangles(new Rectangle[] { new Rectangle(event.x, event.y, 0, 0) });
            if (tracker.open())
            {
                Rectangle rectangle = tracker.getRectangles()[0];

                try
                {
View Full Code Here

    // Ignore any deactivate events caused by opening the tracker.
    // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=120656
    boolean oldListenToDeactivate = listenToDeactivate;
    listenToDeactivate = false;
    if (tracker.open()) {
      if (shell != null && !shell.isDisposed()) {
        shell.setBounds(tracker.getRectangles()[0]);
      }
    }
    listenToDeactivate = oldListenToDeactivate;
View Full Code Here

    Tracker tracker = new Tracker(dialogShell.getDisplay(), style);
    tracker.setStippled(true);
    Rectangle[] r = new Rectangle[] { dialogShell.getBounds() };
    tracker.setRectangles(r);
    isDeactivateListenerActive = false;
    if (tracker.open()) {
      dialogShell.setBounds(tracker.getRectangles()[0]);
      isDeactivateListenerActive = true;
    }
  }
View Full Code Here

    Tracker tracker = new Tracker(dialogShell.getDisplay(), style);
    tracker.setStippled(true);
    Rectangle[] r = new Rectangle[] { dialogShell.getBounds() };
    tracker.setRectangles(r);
    isDeactivateListenerActive = false;
    if (tracker.open()) {
      dialogShell.setBounds(tracker.getRectangles()[0]);
      isDeactivateListenerActive = true;
    }
  }
View Full Code Here

    Tracker tracker = new Tracker(dialogShell.getDisplay(), style);
    tracker.setStippled(true);
    Rectangle[] r = new Rectangle[] { dialogShell.getBounds() };
    tracker.setRectangles(r);
    isDeactivateListenerActive = false;
    if (tracker.open()) {  
      dialogShell.setBounds(tracker.getRectangles()[0]);
      isDeactivateListenerActive = true;
    }
  }
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.