Package org.eclipse.swt.widgets

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


          }
        };

        if (activationTime != 0
            && (feature & KEEP_EDITOR_ON_DOUBLE_CLICK) == 0) {
          control.addMouseListener(mouseListener);
        }

        if (tabeditingListener == null) {
          tabeditingListener = new TraverseListener() {
View Full Code Here


                } else if (mouseListener != null) {
                  control.removeMouseListener(mouseListener);
                }
              }
            };
            control.addMouseListener(mouseListener);
          }
        }
      }
    }
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

    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

    // rest of javadoc inherited
    public void createPartControl(Composite parent) {
        super.createPartControl(parent);
        final IVerticalRuler rule = getVerticalRuler();
        Control control = rule.getControl();
        control.addMouseListener(new MouseListener() {

            public void mouseDoubleClick(MouseEvent event) {
                mouseUp(event);
            }
View Full Code Here

         * Double click on a buddy in the roster adds its JID (bare component
         * part) to the active chat tab input
         */
        final Control control = buddySessionDisplayComposite.getViewer()
            .getControl();
        control.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseDoubleClick(MouseEvent event) {
                if (control instanceof Tree) {
                    TreeItem treeItem = ((Tree) control).getItem(new Point(
                        event.x, event.y));
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

        //      // 1GD0ISU: ITPUI:ALL - Dbl click on view tool cause zoom
        final Control isvToolBar = isvToolBarMgr.createControl2(parentControl.getParent());
       
        isvToolBarMgr.addPropertyChangeListener(new ISVPropListener(isvToolBar));
       
        isvToolBar.addMouseListener(new MouseAdapter() {
            public void mouseDoubleClick(MouseEvent event) {
                if (event.widget instanceof ToolBar) {
               
                    if (((ToolBar)event.widget).getItem(new Point(event.x, event.y)) == null) {
            doZoom();
View Full Code Here

            gd.heightHint = widthPreference;
        }

        animationItem.getControl().setLayoutData(gd);

        viewerControl.addMouseListener(new MouseAdapter() {
            /*
             * (non-Javadoc)
             *
             * @see org.eclipse.swt.events.MouseAdapter#mouseDoubleClick(org.eclipse.swt.events.MouseEvent)
             */
 
View Full Code Here

     */
    public void createControl(Composite parent) {

        Control animationItem = createAnimationItem(parent);

        animationItem.addMouseListener(new MouseListener() {
            /*
             * (non-Javadoc)
             *
             * @see org.eclipse.swt.events.MouseListener#mouseDoubleClick(org.eclipse.swt.events.MouseEvent)
             */
 
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.