Package org.eclipse.jface.text

Examples of org.eclipse.jface.text.IInformationControlExtension3


          return;
       
        IInformationControl infoControl= getCurrentInformationControl2();
        if (infoControl != null && !infoControl.isFocusControl() && infoControl instanceof IInformationControlExtension3) {
//          if (DEBUG) System.out.println("StickyHoverManager.Closer.handleEvent(): activeShell= " + fDisplay.getActiveShell()); //$NON-NLS-1$
          IInformationControlExtension3 iControl3= (IInformationControlExtension3) infoControl;
          Rectangle controlBounds= iControl3.getBounds();
          if (controlBounds != null) {
            Point mouseLoc= event.display.map((Control) event.widget, null, event.x, event.y);
            int margin= getKeepUpMargin();
            Geometry.expand(controlBounds, margin, margin, margin, margin);
            if (!controlBounds.contains(mouseLoc)) {
View Full Code Here


  public void showInformationControl(Rectangle subjectArea, Object information) {
    IInformationControl informationControl= getInformationControl();
   
    Rectangle controlBounds= fContentBounds;
    if (informationControl instanceof IInformationControlExtension3) {
      IInformationControlExtension3 iControl3= (IInformationControlExtension3) informationControl;
      Rectangle trim= iControl3.computeTrim();
      controlBounds= Geometry.add(controlBounds, trim);
     
      /*
       * Ensure minimal size. Interacting with a tiny information control
       * (resizing, selecting text) would be a pain.
View Full Code Here

          return;

        IInformationControl infoControl= getCurrentInformationControl2();
        if (infoControl != null && !infoControl.isFocusControl() && infoControl instanceof IInformationControlExtension3) {
//          if (DEBUG) System.out.println("StickyHoverManager.Closer.handleEvent(): activeShell= " + fDisplay.getActiveShell()); //$NON-NLS-1$
          IInformationControlExtension3 iControl3= (IInformationControlExtension3) infoControl;
          Rectangle controlBounds= iControl3.getBounds();
          if (controlBounds != null) {
            Point mouseLoc= event.display.map((Control) event.widget, null, event.x, event.y);
            int margin= getKeepUpMargin();
            Geometry.expand(controlBounds, margin, margin, margin, margin);
            if (!controlBounds.contains(mouseLoc)) {
View Full Code Here

  public void showInformationControl(Rectangle subjectArea, Object information) {
    IInformationControl informationControl= getInformationControl();

    Rectangle controlBounds= fContentBounds;
    if (informationControl instanceof IInformationControlExtension3) {
      IInformationControlExtension3 iControl3= (IInformationControlExtension3) informationControl;
      Rectangle trim= iControl3.computeTrim();
      controlBounds= Geometry.add(controlBounds, trim);

      /*
       * Ensure minimal size. Interacting with a tiny information control
       * (resizing, selecting text) would be a pain.
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.IInformationControlExtension3

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.