Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Label.addMouseTrackListener()


      Label descriptionText = new Label(descriptionContainer, SWT.WRAP);
      descriptionText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
      descriptionText.setFont(fNormalTextFont);
      descriptionText.setBackground(fInnerContentCircle.getBackground());
      descriptionText.setText(description);
      descriptionText.addMouseTrackListener(fMouseTrackListner);
    }
  }

  private void restoreWindow(IWorkbenchPage page) {
    Shell applicationShell = page.getWorkbenchWindow().getShell();
View Full Code Here


      Label descriptionText = new Label(descriptionContainer, SWT.WRAP);
      descriptionText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
      descriptionText.setFont(fNormalTextFont);
      descriptionText.setBackground(fInnerContentCircle.getBackground());
      descriptionText.setText(description);
      descriptionText.addMouseTrackListener(fMouseTrackListner);
    }
  }

  private void initResources() {
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

    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

      Label descriptionText = new Label(descriptionContainer, SWT.WRAP);
      descriptionText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
      descriptionText.setFont(fNormalTextFont);
      descriptionText.setBackground(fInnerContentCircle.getBackground());
      descriptionText.setText(description);
      descriptionText.addMouseTrackListener(fMouseTrackListner);
    }
  }

  private void initResources() {
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

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.