Examples of ValidationStatus


Examples of com.volantis.mcs.eclipse.validation.ValidationStatus

        return valid;
    }

    // javadoc inherited
    public ValidationStatus validate() {
        ValidationStatus status = null;
        if (!isValueValid()) {
            formatArgs[0] = getValue();
            if (messageFormat == null) {
                messageFormat = new MessageFormat(pattern);
            }
            status = new ValidationStatus(ValidationStatus.WARNING,
                    messageFormat.format(formatArgs));
        }
        return status;
    }
View Full Code Here

Examples of com.volantis.mcs.eclipse.validation.ValidationStatus

        if (!resourceGroup.areAllValuesValid()) {
            setErrorMessage(resourceGroup.getProblemMessage());
            valid = false;
        } else {
            ValidationStatus status =
                    VALIDATOR.validate(getPolicyName(), messageBuilder);

            if (status.getSeverity() == Status.ERROR) {
                setErrorMessage(status.getMessage());
                valid = false;
            } else if (status.getSeverity() == Status.INFO) {
                setErrorMessage(null);
                setMessage(status.getMessage());
                valid = false;
            } else {
                // Attempt to reduce garbage by using a StringBuffer and storing
                // the result of  the toString in a variable. Also the check for
                // policy existence is performed after other validation succeeds
View Full Code Here

Examples of de.tobject.findbugs.properties.DetectorValidator.ValidationStatus

        this.system = system;
    }

    public String getId() {
        if(status instanceof ValidationStatus) {
            ValidationStatus vs = (ValidationStatus) status;
            String id = vs.getSummary().id;
            if(id != null && !ValidationStatus.UNKNOWN_VALUE.equals(id)) {
                return id;
            }
        }
        return system? path.toString() : null;
View Full Code Here

Examples of de.tobject.findbugs.properties.DetectorValidator.ValidationStatus

            }
            URI uri = new File(path).toURI();
            if(allPlugins.containsKey(uri)) {
                continue;
            }
            ValidationStatus status = validator.validate(path);
            if (status.isOK()) {
                addCustomPlugin(enabled, uri);
            } else {
                getDefault().getLog().log(status);
            }
        }
View Full Code Here

Examples of de.tobject.findbugs.properties.DetectorValidator.ValidationStatus

            // project is not supported (propertyPage.getProject() == null for workspace prefs).
            IPath pluginPath = FindBugsWorker.getFilterPath(idOrPath, null);
            URI uri = pluginPath.toFile().toURI();
            customPlugins.add(uri);
            ValidationStatus status = validator.validate(pluginPath.toOSString());
            PathElement element = new PathElement(pluginPath, status);
            Plugin plugin = Plugin.getByPluginId(status.getSummary().id);
            if(plugin != null && !uri.equals(plugin.getPluginLoader().getURI())) {
                // disable contribution if the plugin is already there
                // but loaded from different location
                element.setEnabled(false);
            } else {
View Full Code Here

Examples of de.tobject.findbugs.properties.DetectorValidator.ValidationStatus

        for (IPathElement path : paths) {
            if(path.isSystem()) {
                continue;
            }
            String pathStr = path.getPath();
            ValidationStatus status = validator.validate(pathStr);
            path.setStatus(status);
            if (!status.isOK() && path.isEnabled()) {
                bad = status;
                path.setEnabled(false);
                break;
            }
        }
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.ui.internal.ValidationStatus

    int statusType = valuesFilled ? IStatus.OK : IStatus.ERROR;

    IStatus status = CloudFoundryPlugin.getStatus(message, statusType);

    return new ValidationStatus(status, validationEventType);

  }
View Full Code Here

Examples of org.eclipse.php.internal.ui.util.ValidationStatus

    public TextFieldValidateListener(IStringValidator stringValidator) {
      this.stringValidator = stringValidator;
    }

    public void modifyText(ModifyEvent e) {
      ValidationStatus status = stringValidator
          .validate(((Text) e.widget).getText());
      if (!status.isOK()) {
        setErrorMessage(status.getError());
        setValid(false);
      } else {
        setErrorMessage(null);
        setValid(true);
      }
View Full Code Here

Examples of org.eclipse.php.internal.ui.util.ValidationStatus

    public TextFieldValidateListener(IStringValidator stringValidator) {
      this.stringValidator = stringValidator;
    }

    public void modifyText(ModifyEvent e) {
      ValidationStatus status = stringValidator
          .validate(((Text) e.widget).getText());
      if (!status.isOK()) {
        getPreferencePage().setErrorMessage(status.getError());
        getPreferencePage().setValid(false);
      } else {
        getPreferencePage().setErrorMessage(null);
        getPreferencePage().setValid(true);
      }
View Full Code Here

Examples of org.jitterbit.integration.data.validation.ValidationStatus

    /**
     * Returns the compound (most severe) validation status of this folder and all its descendants.
     *
     */
    public final ValidationStatus getCompoundValidationStatus() {
        ValidationStatus status = getCurrentValidationResult().status();
        if (status == ValidationStatus.INVALID) {
            return status;
        }
        for (IntegrationEntity child : getAllChildren()) {
            ValidationStatus childStatus = child.getValidationStatus();
            if (childStatus.isMoreSevere(status)) {
                status = childStatus;
                if (status == ValidationStatus.INVALID) {
                    break;
                }
            }
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.