Package net.sf.eclipsecs.core.projectconfig

Examples of net.sf.eclipsecs.core.projectconfig.ProjectConfigurationWorkingCopy


        try {
            final EclipseCheckstyleConfigManager csPluginNature =
                    EclipseCheckstyleConfigManager.newInstance(project);

            // construct a new working copy
            final ProjectConfigurationWorkingCopy pcWorkingCopy =
                    new ProjectConfigurationWorkingCopy(
                            ProjectConfigurationFactory.getConfiguration(project));
            pcWorkingCopy.setUseSimpleConfig(false);
            pcWorkingCopy
                    .setSyncFormatter(Activator
                            .getDefault()
                            .getPreferenceStore()
                            .getBoolean(
                                    CheckstyleEclipseConstants.ECLIPSE_CS_GENERATE_FORMATTER_SETTINGS));
            pcWorkingCopy.getFileSets().clear();
           
      for (final MavenPluginConfigurationTranslator mavenCheckstyleConfig : mavenCheckstyleConfigs) {
        if (mavenCheckstyleConfig.isActive()) {
          this.buildCheckstyleConfiguration(pcWorkingCopy,
              mavenCheckstyleConfig);
          // Add the builder and nature
          csPluginNature.configure(monitor);
        } else {
          csPluginNature.deconfigure(monitor);
        }
      }
     

          // persist the checkconfig
          if (pcWorkingCopy.isDirty()) {
              pcWorkingCopy.store();
          }
         
        } catch (CheckstylePluginException ex) {
            // MavenLogger.log("CheckstylePluginException", ex);
        }
View Full Code Here

TOP

Related Classes of net.sf.eclipsecs.core.projectconfig.ProjectConfigurationWorkingCopy

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.