diff options
author | Alena Laskavaia | 2011-02-24 00:50:07 +0000 |
---|---|---|
committer | Alena Laskavaia | 2011-02-24 00:50:07 +0000 |
commit | 598b6fc042eacfacc007746e3e507889c3ac1c02 (patch) | |
tree | a992a31bcb7fb9aef9af9a4521bbf47a640d9c6d /codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanApplication.java | |
parent | 9164b9a75618a13e6c09bcc8fe16d5a96db9faa1 (diff) | |
download | org.eclipse.cdt-598b6fc042eacfacc007746e3e507889c3ac1c02.tar.gz org.eclipse.cdt-598b6fc042eacfacc007746e3e507889c3ac1c02.tar.xz org.eclipse.cdt-598b6fc042eacfacc007746e3e507889c3ac1c02.zip |
auto-format code using project formatter
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanApplication.java')
-rw-r--r-- | codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanApplication.java | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanApplication.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanApplication.java index 29d876aef7c..1adbf6c23b6 100644 --- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanApplication.java +++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CodanApplication.java @@ -38,8 +38,7 @@ public class CodanApplication implements IApplication { private boolean all = false; public Object start(IApplicationContext context) throws Exception { - String[] args = (String[]) context.getArguments().get( - "application.args"); //$NON-NLS-1$ + String[] args = (String[]) context.getArguments().get("application.args"); //$NON-NLS-1$ if (args == null || args.length == 0) { help(); return EXIT_OK; @@ -51,8 +50,7 @@ public class CodanApplication implements IApplication { @Override protected void reportProblem(ICodanProblemMarker pm) { IResource file = pm.getResource(); - System.out.println(file.getLocation() - + ":" + pm.getLocation().getLineNumber() + ": " //$NON-NLS-1$ //$NON-NLS-2$ + System.out.println(file.getLocation() + ":" + pm.getLocation().getLineNumber() + ": " //$NON-NLS-1$ //$NON-NLS-2$ + pm.createMessage()); } }); @@ -65,15 +63,11 @@ public class CodanApplication implements IApplication { log(Messages.CodanApplication_LogRunProject + project); IProject wProject = root.getProject(project); if (!wProject.exists()) { - System.err - .println( // - NLS.bind( - Messages.CodanApplication_Error_ProjectDoesNotExists, - project)); + System.err.println( // + NLS.bind(Messages.CodanApplication_Error_ProjectDoesNotExists, project)); continue; } - codanBuilder.processResource(wProject, - new NullProgressMonitor()); + codanBuilder.processResource(wProject, new NullProgressMonitor()); } } return EXIT_OK; |