Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2015-03-15 22:01:18 -0400
committerGerrit Code Review @ Eclipse.org2015-03-18 21:03:03 -0400
commit50775fe2fb7fdda8f4f5d21537ec75a661e675fc (patch)
tree9b20b28a2e9d696910acba079ac405cffeede5b0 /codan/org.eclipse.cdt.codan.ui.cxx
parent6f8579a796bfe77147e854b84d434645bb8c8c08 (diff)
downloadorg.eclipse.cdt-50775fe2fb7fdda8f4f5d21537ec75a661e675fc.tar.gz
org.eclipse.cdt-50775fe2fb7fdda8f4f5d21537ec75a661e675fc.tar.xz
org.eclipse.cdt-50775fe2fb7fdda8f4f5d21537ec75a661e675fc.zip
codan: encapsulated builder and added vm var to disable (for tests)
- refactored the code so client who run codan always go though builder to call checkers - added vm arg -Dcodan.disabled=true to be used mostly by junit to not run codan at all Change-Id: Ie85e20f23b6ded8fffe5064adc1f9193a6f9a146
Diffstat (limited to 'codan/org.eclipse.cdt.codan.ui.cxx')
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/CodanPartListener.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/CodanPartListener.java b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/CodanPartListener.java
index 2f3fd38d42..9798681944 100644
--- a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/CodanPartListener.java
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/CodanPartListener.java
@@ -12,8 +12,8 @@
*******************************************************************************/
package org.eclipse.cdt.codan.internal.ui.cxx;
+import org.eclipse.cdt.codan.core.CodanRuntime;
import org.eclipse.cdt.codan.core.model.CheckerLaunchMode;
-import org.eclipse.cdt.codan.internal.core.CodanRunner;
import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.internal.ui.editor.CEditor;
import org.eclipse.cdt.internal.ui.editor.IPostSaveListener;
@@ -71,7 +71,7 @@ class CodanPartListener implements IPartListener2 {
Job job = new Job(NLS.bind(Messages.Startup_AnalyzingFile, resource.getName())) {
@Override
protected IStatus run(IProgressMonitor monitor) {
- CodanRunner.processResource(resource, launchMode, monitor);
+ CodanRuntime.getInstance().getBuilder().processResource(resource, monitor, launchMode);
return Status.OK_STATUS;
}
};

Back to the top