Package de.tobject.findbugs.properties.DetectorValidator

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


            }
            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

            // 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

        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

TOP

Related Classes of de.tobject.findbugs.properties.DetectorValidator.ValidationStatus

Copyright © 2018 www.massapicom. 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.