Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.MouseTrackListener


  }
 
  public void initialize(Canvas canvas) {
    super.initialize(canvas);
   
    canvas.addMouseTrackListener(new MouseTrackListener() {
      public void mouseHover(MouseEvent e) {
      }
   
      public void mouseExit(MouseEvent e) {
        if (autoAlpha) {
View Full Code Here


          composite.redraw();
        }
      }
    });

    composite.addMouseTrackListener(new MouseTrackListener() {
      boolean mouseIsOut = false;

      private boolean exitCancelled = false;

      public void mouseHover(MouseEvent e) {
View Full Code Here

            private boolean isMouseInButton(MouseEvent e) {
                Point buttonSize = clearButton.getSize();
                return 0 <= e.x && e.x < buttonSize.x && 0 <= e.y && e.y < buttonSize.y;
            }
        });
        clearButton.addMouseTrackListener(new MouseTrackListener() {
            public void mouseEnter(MouseEvent e) {
                clearButton.setImage(activeImage);
            }

            public void mouseExit(MouseEvent e) {
View Full Code Here

        makeHoverShell();
        addMouseListeners();
    }

    private void addMouseListeners() {
        canvas.addMouseTrackListener(new MouseTrackListener() {
           
            @Override
            public void mouseHover(MouseEvent e) {
                maybeShowHover();
            }
View Full Code Here

      public void mouseUp(MouseEvent e) {
        updateEditingPosition();
      }
    });

    wScript.getStyledText().addMouseTrackListener(new MouseTrackListener() {

      @Override
      public void mouseHover(MouseEvent e) {
        updateErrorToolTip(e.x, e.y);
      }
View Full Code Here

        }
      }
    };

    // Listener for tracking the beginning of a hover. Always installed.
    mouseTrackListener = new MouseTrackListener() {
      public void mouseExit(MouseEvent event) {
        // Just in case we didn't catch it before.
        Control target = (Control) event.widget;
        if (target == moveListeningTarget) {
          printRemoveListener(target, "MOUSEMOVE"); //$NON-NLS-1$
View Full Code Here

    FormData formData;
    int i = indexForPosition(position);
    if (decDatas[i] == null) {
      formData = createFormDataForIndex(i, decoration.getImage());
      label = new Label(form, SWT.HORIZONTAL | SWT.VERTICAL | SWT.CENTER);
      label.addMouseTrackListener(new MouseTrackListener() {
        public void mouseHover(MouseEvent event) {
          FieldDecorationData decData = (FieldDecorationData) event.widget
              .getData();
          String desc = decData.decoration.getDescription();
          if (desc != null) {
View Full Code Here

          EMFTraceModelElementOpener.open(target);
        }
      }
    });

    link.addMouseTrackListener(new MouseTrackListener() {

      @Override
      public void mouseHover(MouseEvent e) {}

      @Override
View Full Code Here

          ModelOpenHelper.openModel(target);
        }
      }
    });

    link.addMouseTrackListener(new MouseTrackListener() {

      @Override
      public void mouseHover(MouseEvent e) {}

      @Override
View Full Code Here

          currentState.mouseHover();
        }       
      }
    });
   
    addMouseTrackListener(new MouseTrackListener(){
      public void mouseEnter(MouseEvent e) { 
        if(isToggled){
          if(hotSpotToggled && inHotSpot || !hotSpotToggled){
            if(hotSpot && inHotSpot || !hotSpot){         
              currentState.mouseHover();
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.MouseTrackListener

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.