Skip to content

Commit 49bd988

Browse files
committed
Extended project reconfiguration capabilities
Project environment variables are getting reconfigured on global/project level changing. Also on global configuration change the projects that set to use the global configuration also get updated. Added new logical representation of a CodeChecker project. All configuration belongs to this projects, except the CcGlobalConfiguration which is a singleton. This new class gets the responsibility of modifying the projects environment variables, and path management. The CodeCheckerContext now stores these projects instead the induvidual configurations. Added an extra requirement to the pom of the integration tests resolve that CDT was missing the project templates in CLI runs.
1 parent f5c78b9 commit 49bd988

File tree

22 files changed

+1037
-447
lines changed

22 files changed

+1037
-447
lines changed

bundles/org.codechecker.eclipse.plugin/src/org/codechecker/eclipse/plugin/Activator.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.codechecker.eclipse.plugin;
22

3-
import org.codechecker.eclipse.plugin.config.CodeCheckerContext;
4-
53
import org.eclipse.cdt.utils.Platform;
64
import org.eclipse.core.runtime.FileLocator;
75
import org.eclipse.core.runtime.IPath;
@@ -73,7 +71,6 @@ public void start(BundleContext context) throws Exception {
7371
ConsoleFactory.consoleWrite("CodeChecker Plugin Started");
7472
super.start(context);
7573

76-
7774
//earlyStartup();
7875
}
7976

bundles/org.codechecker.eclipse.plugin/src/org/codechecker/eclipse/plugin/CodeCheckerNature.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import org.eclipse.core.resources.IProjectNature;
55
import org.eclipse.core.runtime.CoreException;
66

7-
import org.codechecker.eclipse.plugin.config.CcConfiguration;
87
import org.codechecker.eclipse.plugin.config.CodeCheckerContext;
8+
import org.codechecker.eclipse.plugin.config.project.CodeCheckerProject;
99

1010
/**
1111
* Eclipse uses natures as project feature indicators.
@@ -19,9 +19,9 @@ public class CodeCheckerNature implements IProjectNature {
1919

2020
@Override
2121
public void configure() throws CoreException {
22-
CcConfiguration config = new CcConfiguration(project);
23-
config.modifyProjectEnvironmentVariables();
24-
CodeCheckerContext.getInstance().setConfig(project, config);
22+
CodeCheckerProject cCProject = new CodeCheckerProject(project);
23+
cCProject.modifyProjectEnvironmentVariables();
24+
CodeCheckerContext.getInstance().addCodeCheckerProject(cCProject);
2525
}
2626

2727
@Override

0 commit comments

Comments
 (0)