Skip to content

Commit 91209b7

Browse files
author
Gyorgy Orban
authored
Merge pull request #156 from Vodorok/reconfig_patch
Extended project reconfiguration capabilities
2 parents f5c78b9 + 49bd988 commit 91209b7

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)