Package org.eclipse.jface.fieldassist

Examples of org.eclipse.jface.fieldassist.ControlDecoration.hide()


    if (Application.IS_MAC) {

      /* Use a decoration to help the user understand the State Semantic */
      final ControlDecoration newControlDeco = new ControlDecoration(fNewState, SWT.LEFT | SWT.TOP);
      newControlDeco.setImage(OwlUI.getImage(fNewState, "icons/obj16/dotempty.gif")); //$NON-NLS-1$
      newControlDeco.hide();

      final ControlDecoration unreadControlDeco = new ControlDecoration(fUnreadState, SWT.LEFT | SWT.TOP);
      unreadControlDeco.setImage(OwlUI.getImage(fUnreadState, "icons/obj16/dotempty.gif")); //$NON-NLS-1$
      unreadControlDeco.hide();

View Full Code Here


      newControlDeco.setImage(OwlUI.getImage(fNewState, "icons/obj16/dotempty.gif")); //$NON-NLS-1$
      newControlDeco.hide();

      final ControlDecoration unreadControlDeco = new ControlDecoration(fUnreadState, SWT.LEFT | SWT.TOP);
      unreadControlDeco.setImage(OwlUI.getImage(fUnreadState, "icons/obj16/dotempty.gif")); //$NON-NLS-1$
      unreadControlDeco.hide();

      fNewState.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
          if (fNewState.getSelection() && !fUnreadState.getSelection()) {
View Full Code Here

        public void widgetSelected(SelectionEvent e) {
          if (fNewState.getSelection() && !fUnreadState.getSelection()) {
            unreadControlDeco.show();
            unreadControlDeco.showHoverText(Messages.StateConditionControl_UNREAD_HINT);
          } else {
            unreadControlDeco.hide();
            unreadControlDeco.hideHover();
          }
        }
      });
View Full Code Here

      });

      fUnreadState.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
          unreadControlDeco.hide();
          unreadControlDeco.hideHover();
        }
      });
    }
View Full Code Here

    private ControlDecoration createControlDecoration(Control parent){
      ControlDecoration dec = new ControlDecoration(parent, SWT.TOP | SWT.LEFT);
      dec.setImage(PlatformUI.getWorkbench().
      getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_ERROR));
      dec.hide();
      return dec;
    }
   
  private void validate() {
    String errorMessage = null;
View Full Code Here

                getContainer().updateButtons();
                boolean valid = isValid(text);
                if (text.getText().trim().equals("") && valid) { //$NON-NLS-1$
                    decoration.show();
                } else {
                    decoration.hide();
                }
            }

        });
View Full Code Here

  }

  private void addRuleModificationListeners() {
    final ControlDecoration badSeperatorNotification = new ControlDecoration(seperatorToken, SWT.RIGHT | SWT.TOP);
    badSeperatorNotification.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_ERROR));
    badSeperatorNotification.hide();
    final ControlDecoration badStartFromNotification = new ControlDecoration(startFrom, SWT.RIGHT | SWT.TOP);
    badStartFromNotification.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_ERROR));
    badStartFromNotification.hide();
    badStartFromNotification.setDescriptionText("Start from must be numeric");
View Full Code Here

    final ControlDecoration badSeperatorNotification = new ControlDecoration(seperatorToken, SWT.RIGHT | SWT.TOP);
    badSeperatorNotification.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_ERROR));
    badSeperatorNotification.hide();
    final ControlDecoration badStartFromNotification = new ControlDecoration(startFrom, SWT.RIGHT | SWT.TOP);
    badStartFromNotification.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_ERROR));
    badStartFromNotification.hide();
    badStartFromNotification.setDescriptionText("Start from must be numeric");

    ModifyListener numDigitsListener = new ModifyListener() {
      @Override
      public void modifyText(ModifyEvent e) {
View Full Code Here

          Integer.parseInt(startFrom.getText());
        } catch (NumberFormatException f) {
          isGood = false;
        }
        if (isGood) {
          badStartFromNotification.hide();
          inputRule.setStartFrom(Integer.parseInt(startFrom.getText()));
          fireRuleChanged(inputRule);
        } else {
          badStartFromNotification.show();
        }
View Full Code Here

        browserTableViewer.refresh(true);
      }
    });
    final ControlDecoration lessThanZeroListNotification = new ControlDecoration(applyButton, SWT.RIGHT | SWT.TOP);
    lessThanZeroListNotification.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_ERROR));
    lessThanZeroListNotification.hide();

    final ControlDecoration namingConflictNotification = new ControlDecoration(applyButton, SWT.RIGHT | SWT.TOP);
    namingConflictNotification
        .setDescriptionText("One or more files would have been renamed to the same thing. \nModify your inputs to avoid this happening again.");
    namingConflictNotification.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_ERROR));
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.