Package org.eclipse.jface.fieldassist

Examples of org.eclipse.jface.fieldassist.ControlDecoration.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));
    namingConflictNotification.hide();

    final ControlDecoration badRegexNotification = new ControlDecoration(applyButton, SWT.RIGHT | SWT.TOP);
    badRegexNotification.setDescriptionText("The regular expression you entered is invalid. Please edit it and try again");
    badRegexNotification.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_ERROR));
    badRegexNotification.hide();
View Full Code Here


    namingConflictNotification.hide();

    final ControlDecoration badRegexNotification = new ControlDecoration(applyButton, SWT.RIGHT | SWT.TOP);
    badRegexNotification.setDescriptionText("The regular expression you entered is invalid. Please edit it and try again");
    badRegexNotification.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_ERROR));
    badRegexNotification.hide();

    final ControlDecoration ioExceptionNotification = new ControlDecoration(applyButton, SWT.RIGHT | SWT.TOP);
    final String ioExceptionString = "An I/O Error occurred during renaming.";

    ioExceptionNotification.setDescriptionText(ioExceptionString);
View Full Code Here

    final ControlDecoration ioExceptionNotification = new ControlDecoration(applyButton, SWT.RIGHT | SWT.TOP);
    final String ioExceptionString = "An I/O Error occurred during renaming.";

    ioExceptionNotification.setDescriptionText(ioExceptionString);
    ioExceptionNotification.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_WARNING));
    ioExceptionNotification.hide();

    renamer.addEventListener(new EventListener() {

      @Override
      public void seeEvent(EventType eventType, File file, RenamerRule rule) {
View Full Code Here

          namingConflictNotification.show();
          applyButton.setEnabled(false);
          break;
        case RenamedWithNoProblems:
          namingConflictNotification.hide();
          ioExceptionNotification.hide();
          badRegexNotification.hide();
          lessThanZeroListNotification.hide();
          applyButton.setEnabled(true);
          break;
        case LessThanOneRomanList:
View Full Code Here

        SWT.RIGHT | SWT.TOP);
    controlDecoration.setDescriptionText(message);
    FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault()
        .getFieldDecoration(FieldDecorationRegistry.DEC_ERROR);
    controlDecoration.setImage(fieldDecoration.getImage());
    controlDecoration.hide();
    return controlDecoration;
  }

  /**
   * Creates a content proposal decorator for the given control.
View Full Code Here

            Image errorImage, int position) {
        final ControlDecoration errorDecoration = new ControlDecoration(
                controlToDecorate, position);
        errorDecoration.setImage(errorImage);
        errorDecoration.setDescriptionText(errorDecorationText);
        errorDecoration.hide();
        return errorDecoration;
    }

}
View Full Code Here

    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

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.