Package org.eclipse.swt.widgets

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


        mouseListener = new MouseAdapter() {
          public void mouseDown(MouseEvent e) {
            // time wrap?
            // check for expiration of doubleClickTime
            if (shouldFireDoubleClick(activationTime, e.time, activationEvent) && e.button == 1) {
              control.removeMouseListener(mouseListener);
              cancelEditing();
              handleDoubleClickEvent();
            } else if (mouseListener != null) {
              control.removeMouseListener(mouseListener);
            }
View Full Code Here


            if (shouldFireDoubleClick(activationTime, e.time, activationEvent) && e.button == 1) {
              control.removeMouseListener(mouseListener);
              cancelEditing();
              handleDoubleClickEvent();
            } else if (mouseListener != null) {
              control.removeMouseListener(mouseListener);
            }
          }
        };

        if (activationTime != 0
View Full Code Here

          c.removeListener(cellEditorListener);
          Control control = c.getControl();
          if (control != null && !control.isDisposed()) {
            if (mouseListener != null) {
              control.removeMouseListener(mouseListener);
              // Clear the instance not needed any more
              mouseListener = null;
            }
            if (focusListener != null) {
              control.removeFocusListener(focusListener);
View Full Code Here

          cellEditor.removeListener(cellEditorListener);

          Control control = cellEditor.getControl();
          if (control != null && !viewer.getControl().isDisposed()) {
            if (mouseListener != null) {
              control.removeMouseListener(mouseListener);
              // Clear the instance not needed any more
              mouseListener = null;
            }
            if (focusListener != null) {
              control.removeFocusListener(focusListener);
View Full Code Here

            mouseListener = new MouseAdapter() {
              public void mouseDown(MouseEvent e) {
                // time wrap?
                // check for expiration of doubleClickTime
                if (e.time <= doubleClickExpirationTime) {
                  control.removeMouseListener(mouseListener);
                  cancelEditing();
                  handleDoubleClickEvent();
                } else if (mouseListener != null) {
                  control.removeMouseListener(mouseListener);
                }
View Full Code Here

                if (e.time <= doubleClickExpirationTime) {
                  control.removeMouseListener(mouseListener);
                  cancelEditing();
                  handleDoubleClickEvent();
                } else if (mouseListener != null) {
                  control.removeMouseListener(mouseListener);
                }
              }
            };
            control.addMouseListener(mouseListener);
          }
View Full Code Here

        setEditor(null, null, 0);
        c.removeListener(cellEditorListener);
        Control control = c.getControl();
        if (control != null) {
          if (mouseListener != null) {
            control.removeMouseListener(mouseListener);
          }
          if (focusListener != null) {
            control.removeFocusListener(focusListener);
          }
        }
View Full Code Here

    if (fEditor != null) {
      IVerticalRulerInfo rulerInfo= (IVerticalRulerInfo) fEditor.getAdapter(IVerticalRulerInfo.class);
      if (rulerInfo != null) {
        Control control= rulerInfo.getControl();
        if (control != null && !control.isDisposed())
          control.removeMouseListener(this);
      }

      if (fEditor instanceof ITextEditorExtension)
        ((ITextEditorExtension) fEditor).removeRulerContextMenuListener(this);
    }
View Full Code Here

      Control control= fControl;
      fControl= null;
      if (Helper.okToUse(control)) {

        control.removeMouseListener(this);
        control.removeFocusListener(this);

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

        // See if we're already listenting to an editor; if so, stop listening
        if (editor != null) {
            if (ruler != null) {
                control = ruler.getControl();
                if (control != null && !control.isDisposed()) {
                    control.removeMouseListener(this);
                }
            }
            if (editor instanceof ITextEditorExtension) {
                ((ITextEditorExtension) editor).removeRulerContextMenuListener(this);
            }
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.