sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/builder/CustomPostBuilder.java
changeset 15 0367d2db2c06
parent 6 f65f740e69f9
--- a/sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/builder/CustomPostBuilder.java	Tue Aug 24 12:10:03 2010 +0300
+++ b/sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/builder/CustomPostBuilder.java	Tue Aug 24 12:16:27 2010 +0300
@@ -23,19 +23,17 @@
 
 //import com.nokia.carbide.cdt.builder.BuildArgumentsInfo;
 import com.nokia.carbide.cdt.builder.CarbideBuilderPlugin;
-import com.nokia.carbide.cdt.builder.builder.CarbideCPPBuilder;
-//import com.nokia.carbide.cdt.builder.project.ICarbideBuildConfiguration;
+import com.nokia.carbide.cdt.builder.builder.CarbideCPPBuilder; //import com.nokia.carbide.cdt.builder.project.ICarbideBuildConfiguration;
 import com.nokia.carbide.cdt.builder.project.ICarbideProjectInfo;
 import com.nokia.s60tools.analyzetool.Activator;
 import com.nokia.s60tools.analyzetool.global.Constants;
 import com.nokia.s60tools.analyzetool.global.Util;
 
-
 /**
  * Class to execute custom post-build actions.
- *
+ * 
  * @author kihe
- *
+ * 
  */
 public class CustomPostBuilder extends AnalyzeToolBuilder {
 
@@ -44,8 +42,8 @@
 
 	/**
 	 * Executes AnalyzeTool post actions when user builds projects.
-	 *
-	 *
+	 * 
+	 * 
 	 * @see com.nokia.carbide.cdt.builder.builder.CarbideCPPBuilder#build(int,
 	 *      java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
 	 */
@@ -61,9 +59,9 @@
 		ICarbideProjectInfo cpi = CarbideBuilderPlugin.getBuildManager()
 				.getProjectInfo(project);
 
-
 		IPreferenceStore store = Activator.getPreferences();
-		boolean buildCanceled = store.getBoolean(Constants.PREFS_BUILD_CANCELLED);
+		boolean buildCanceled = store
+				.getBoolean(Constants.PREFS_BUILD_CANCELLED);
 		// if the AnalyzeTool is canceled
 		if (buildCanceled) {
 			getCarbideCommandLauncher().writeToConsole(
@@ -79,25 +77,20 @@
 			return null;
 		}
 
-
-		//execute atool.exe
+		// execute atool.exe
 		if (CarbideCPPBuilder.projectHasBuildErrors(cpi.getProject())) {
-			runUninstrument(Constants.ATOOL_UNINST_FAILED,cpi, monitor);
+			runUninstrument(Constants.ATOOL_UNINST_FAILED, cpi, monitor);
 		} else {
-			runUninstrument(Constants.ATOOL_UNINST,cpi, monitor);
+			runUninstrument(Constants.ATOOL_UNINST, cpi, monitor);
 		}
-
-
 		monitor.worked(1);
-
 		runPostSteps(cpi);
 
 		return new IProject[0];
 	}
 
-
 	@Override
-	protected void clean(final IProgressMonitor arg0){
+	protected void clean(final IProgressMonitor arg0) {
 		// DO nothing by design
 	}
 }