Package org.eclipse.ui.forms

Examples of org.eclipse.ui.forms.IMessageManager.addMessage()


          syntaxSeverity = IMessageProvider.ERROR;
        }
      }
      if(syntax != null)
        if(control == null)
          msgManager.addMessage(key, syntax, null, syntaxSeverity);
        else
          msgManager.addMessage(DEFAULT_MESSAGE_KEY, syntax, null, syntaxSeverity, control);
      else if(control != null)
        msgManager.removeMessage(DEFAULT_MESSAGE_KEY, control);
      return syntaxSeverity;
View Full Code Here


      }
      if(syntax != null)
        if(control == null)
          msgManager.addMessage(key, syntax, null, syntaxSeverity);
        else
          msgManager.addMessage(DEFAULT_MESSAGE_KEY, syntax, null, syntaxSeverity, control);
      else if(control != null)
        msgManager.removeMessage(DEFAULT_MESSAGE_KEY, control);
      return syntaxSeverity;
    }
View Full Code Here

    int validateVersion(String version, Control control) {
      IMessageManager msgManager = getManagedForm().getMessageManager();
      if(version == null) {
        String msg = UIPlugin.getLocalString("_UI_Module_version_missing");
        msgManager.addMessage(DEFAULT_MESSAGE_KEY, msg, null, IMessageProvider.ERROR, control);
        return IMessageProvider.ERROR;
      }
      int result = IMessageProvider.NONE;
      try {
        Version.fromString(version);
View Full Code Here

      try {
        Version.fromString(version);
        msgManager.removeMessage(DEFAULT_MESSAGE_KEY, control);
      }
      catch(IllegalArgumentException e) {
        msgManager.addMessage(DEFAULT_MESSAGE_KEY, e.getMessage(), null, IMessageProvider.ERROR, control);
        result = IMessageProvider.ERROR;
      }
      return result;
    }
View Full Code Here

    int validateVersionRequirement(String versionRequirement, String key) {
      IMessageManager msgManager = getManagedForm().getMessageManager();
      if(versionRequirement == null) {
        String msg = UIPlugin.getLocalString("_UI_Module_version_requirement_missing");
        msgManager.addMessage(key, msg, null, IMessageProvider.ERROR);
        return IMessageProvider.ERROR;
      }
      int result = IMessageProvider.NONE;
      try {
        VersionRange.create(versionRequirement);
View Full Code Here

      int result = IMessageProvider.NONE;
      try {
        VersionRange.create(versionRequirement);
      }
      catch(IllegalArgumentException e) {
        msgManager.addMessage(key, e.getMessage(), null, IMessageProvider.ERROR);
        result = IMessageProvider.ERROR;
      }
      return result;
    }
  }
View Full Code Here

          int severity = validateDependencyName(fullName, "n" + row); //$NON-NLS-1$

          MetadataModel.Dependency dep = (MetadataModel.Dependency) element;
          if(!dep.isResolved()) {
            IMessageManager msgManager = getManagedForm().getMessageManager();
            msgManager.addMessage(
              "d" + row, MetadataModel.getUnresolvedMessage(dep), null, IMessageProvider.ERROR);
            severity = IMessage.ERROR;
          }

          if(severity == IMessage.ERROR)
View Full Code Here

    private int validateDependencyName(String name, String key) {
      IMessageManager msgManager = getManagedForm().getMessageManager();
      if(name == null) {
        String msg = UIPlugin.getLocalString("_UI_Dependency_name_missing");
        msgManager.addMessage(key, msg, null, IMessageProvider.ERROR);
        return IMessageProvider.ERROR;
      }

      int syntaxSeverity = IMessageProvider.NONE;
      String syntax = null;
View Full Code Here

          e = e2;
        }
        syntax = MetadataModel.getBadNameMessage(e, true);
      }
      if(syntax != null)
        msgManager.addMessage(key, syntax, null, syntaxSeverity);
      return syntaxSeverity;
    }
  }

  private static final IStatus OK_WITHOUT_TEXT = new Status(
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.