Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.StyledText.toDisplay()


      location.x= 0;

      if (fVerticalRuler instanceof IVerticalRulerExtension)
        ((IVerticalRulerExtension) fVerticalRuler).setLocationOfLastMouseButtonActivity(location.x, location.y);

      location= text.toDisplay(location);
      fRulerContextMenu.setLocation(location.x, location.y);
      fRulerContextMenu.setVisible(true);
    }
  }
View Full Code Here


    Point p= text.getLocationAtOffset(selection.x);
    p.x -= fProposalShell.getBorderWidth();
    if (p.x < 0) p.x= 0;
    if (p.y < 0) p.y= 0;
    p= new Point(p.x, p.y + text.getLineHeight(selection.x));
    p= text.toDisplay(p);
    return p;
  }

  /**
   *Displays this popup and install the additional info controller, so that additional info
View Full Code Here

    }

    protected Point getAboveLocation(Shell shell, int offset) {
      StyledText text= fViewer.getTextWidget();
      Point location= text.getLocationAtOffset(offset);
      location= text.toDisplay(location);

      Rectangle shellBounds= shell.getBounds();
      Rectangle displayBounds= shell.getDisplay().getClientArea();

      location.y=location.y - shellBounds.height;
View Full Code Here

    protected Point getBelowLocation(Shell shell, int offset) {
      StyledText text= fViewer.getTextWidget();
      Point location= text.getLocationAtOffset(offset);
      if (location.x < 0) location.x= 0;
      if (location.y < 0) location.y= 0;
      location= text.toDisplay(location);

      Rectangle shellBounds= shell.getBounds();
      Rectangle displayBounds= shell.getDisplay().getClientArea();

      location.y= location.y + text.getLineHeight(offset);
View Full Code Here

      location.x= 0;

      if (fVerticalRuler instanceof IVerticalRulerExtension)
        ((IVerticalRulerExtension) fVerticalRuler).setLocationOfLastMouseButtonActivity(location.x, location.y);

      location= text.toDisplay(location);
      fRulerContextMenu.setLocation(location.x, location.y);
      fRulerContextMenu.setVisible(true);
    }
  }
View Full Code Here

    Point p= text.getLocationAtOffset(selection.x);
    p.x -= fProposalShell.getBorderWidth();
    if (p.x < 0) p.x= 0;
    if (p.y < 0) p.y= 0;
    p= new Point(p.x, p.y + text.getLineHeight(selection.x));
    p= text.toDisplay(p);
    return p;
  }

  /**
   *Displays this popup and install the additional info controller, so that additional info
View Full Code Here

    }

    protected Point getAboveLocation(Shell shell, int offset) {
      StyledText text= fViewer.getTextWidget();
      Point location= text.getLocationAtOffset(offset);
      location= text.toDisplay(location);

      Rectangle shellBounds= shell.getBounds();
      Rectangle displayBounds= shell.getDisplay().getClientArea();

      location.y=location.y - shellBounds.height;
View Full Code Here

    protected Point getBelowLocation(Shell shell, int offset) {
      StyledText text= fViewer.getTextWidget();
      Point location= text.getLocationAtOffset(offset);
      if (location.x < 0) location.x= 0;
      if (location.y < 0) location.y= 0;
      location= text.toDisplay(location);

      Rectangle shellBounds= shell.getBounds();
      Rectangle displayBounds= shell.getDisplay().getClientArea();

      location.y= location.y + text.getLineHeight(offset);
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.