Package net.sourceforge.pmd.eclipse.runtime.properties

Examples of net.sourceforge.pmd.eclipse.runtime.properties.IProjectProperties


  protected void unconfigureEclipsePlugin(final IProject project,
      final IProgressMonitor monitor) throws CoreException {
    IProjectPropertiesManager mgr = PMDPlugin.getDefault()
        .getPropertiesManager();
    try {
      IProjectProperties projectProperties = mgr
          .loadProjectProperties(project);
      projectProperties.setPmdEnabled(false);
      projectProperties.setRuleSetStoredInProject(false);
      mgr.storeProjectProperties(projectProperties);
    } catch (PropertiesException ex) {
    }

    PMDNature.removePMDNature(project, monitor);
View Full Code Here


          project.getFile(PMD_RULESET_FILE), ruleset, monitor);

      try {
        final IProjectPropertiesManager mgr = PMDPlugin.getDefault()
            .getPropertiesManager();
        final IProjectProperties projectProperties = mgr
            .loadProjectProperties(project);
        projectProperties.setPmdEnabled(true);
        projectProperties.setRuleSetFile(rulesetFile.getAbsolutePath());
        projectProperties.setRuleSetStoredInProject(true);
        mgr.storeProjectProperties(projectProperties);
      } catch (PropertiesException ex) {
        // remove the files
        this.unconfigureEclipsePlugin(project, monitor);
      }
View Full Code Here

TOP

Related Classes of net.sourceforge.pmd.eclipse.runtime.properties.IProjectProperties

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.