Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Control.addMouseListener()


            }
            ruler = (IVerticalRulerInfo) editor.getAdapter(IVerticalRulerInfo.class);
            if (ruler != null) {
                control = ruler.getControl();
                if (control != null && !control.isDisposed()) {
                    control.addMouseListener(this);
                }
            }
        } else {
            ruler = null;
            editor = null;
View Full Code Here


    TrayComposite.ResizeListener resizeListener = trayComposite.new ResizeListener();
    addMouseListener(resizeListener);
    addMouseMoveListener(resizeListener);
    topTexture.addMouseListener(resizeListener);
    topTexture.addMouseMoveListener(resizeListener);
    bottomTexture.addMouseListener(resizeListener);
    bottomTexture.addMouseMoveListener(resizeListener);
   
    addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent e) {
        e.gc.setForeground(CommonUIPlugin.getDefault().getColorRegistry().get(IDetailsColors.COLOR_DARK_SHADOW));
View Full Code Here

        Shell shell= w.getShell();
        fShell= shell;
        shell.addControlListener(this);

        w.addMouseListener(this);
        w.addFocusListener(this);

        /*
         * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of Internal Errors
         */
 
View Full Code Here

        Shell shell= control.getShell();
        fShell= shell;
        shell.addControlListener(this);

        control.addMouseListener(this);
        control.addFocusListener(this);

        /*
         * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of
         * Internal Errors
View Full Code Here

        }
        hyperlink = link;
        hyperlink.linkEntered();
        control.setCursor(getHandCursor());
        control.redraw();
        control.addMouseListener(this);
    }

    /**
     * Notification a link was exited.
     *
 
View Full Code Here

    manager.addMenuListener(getContextMenuListener());

    Control rulerControl= fVerticalRuler.getControl();
    fRulerContextMenu= manager.createContextMenu(rulerControl);
    rulerControl.setMenu(fRulerContextMenu);
    rulerControl.addMouseListener(getRulerMouseListener());

    if (fRulerContextMenuId != null)
      getEditorSite().registerContextMenu(fRulerContextMenuId, manager, getSelectionProvider(), false);
    else if (fCompatibilityMode)
      getEditorSite().registerContextMenu(DEFAULT_RULER_CONTEXT_MENU_ID, manager, getSelectionProvider(), false);
View Full Code Here

        fAction= createAction(fEditor, rulerInfo);
        update();

        Control control= rulerInfo.getControl();
        if (control != null && !control.isDisposed())
          control.addMouseListener(this);
      }
    }
  }

  /*
 
View Full Code Here

                } else if (mouseListener != null) {
                  control.removeMouseListener(mouseListener);
                }
              }
            };
            control.addMouseListener(mouseListener);
          }
        }
      }
    }
View Full Code Here

        Shell shell= control.getShell();
        fShell= shell;
        shell.addControlListener(this);

        control.addMouseListener(this);
        control.addFocusListener(this);

        /*
         * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of
         * Internal Errors
View Full Code Here

        Shell shell= w.getShell();
        fShell= shell;
        shell.addControlListener(this);

        w.addMouseListener(this);
        w.addFocusListener(this);

        /*
         * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of Internal Errors
         */
 
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.