builder/com.nokia.carbide.cpp.builder.utils/src/com/nokia/carbide/cpp/internal/builder/utils/handlers/CompileHandler.java
branchC3_BUILDER_WORK
changeset 1749 0d2e2c9062b1
parent 0 fb279309251b
equal deleted inserted replaced
1747:853ab1210200 1749:0d2e2c9062b1
    78 				try {
    78 				try {
    79 					SubMonitor subMonitor = SubMonitor.convert(monitor, selectedFiles.size());
    79 					SubMonitor subMonitor = SubMonitor.convert(monitor, selectedFiles.size());
    80 
    80 
    81 					IProject lastProject = selectedFiles.get(0).getProject();
    81 					IProject lastProject = selectedFiles.get(0).getProject();
    82 					ICarbideProjectInfo cpi = CarbideBuilderPlugin.getBuildManager().getProjectInfo(lastProject);
    82 					ICarbideProjectInfo cpi = CarbideBuilderPlugin.getBuildManager().getProjectInfo(lastProject);
    83 					String[] errorParserIds = CarbideCPPBuilder.getParserIdArray(cpi.getDefaultConfiguration().getErrorParserId());
    83 					String[] errorParserIds = cpi.getDefaultConfiguration().getErrorParserList();
    84 					IPath workingDirectory = cpi.getINFWorkingDirectory();
    84 					IPath workingDirectory = cpi.getINFWorkingDirectory();
    85 
    85 
    86 					// create the launcher for the first file's project.  if there are files selected for other projects, change the
    86 					// create the launcher for the first file's project.  if there are files selected for other projects, change the
    87 					// launcher then and only then.  creating a new launcher clears the build console so we don't want to do that
    87 					// launcher then and only then.  creating a new launcher clears the build console so we don't want to do that
    88 					// for files of the same project.
    88 					// for files of the same project.
   102 						
   102 						
   103 						if (project != null && path != null) {
   103 						if (project != null && path != null) {
   104 							if (lastProject != project && path != null) {
   104 							if (lastProject != project && path != null) {
   105 					    		lastProject = project;
   105 					    		lastProject = project;
   106 								cpi = CarbideBuilderPlugin.getBuildManager().getProjectInfo(lastProject);
   106 								cpi = CarbideBuilderPlugin.getBuildManager().getProjectInfo(lastProject);
   107 								errorParserIds = CarbideCPPBuilder.getParserIdArray(cpi.getDefaultConfiguration().getErrorParserId());
   107 								errorParserIds = cpi.getDefaultConfiguration().getErrorParserList();
   108 								workingDirectory = cpi.getINFWorkingDirectory();
   108 								workingDirectory = cpi.getINFWorkingDirectory();
   109 								launcher = new CarbideCommandLauncher(lastProject, monitor, errorParserIds, workingDirectory);
   109 								launcher = new CarbideCommandLauncher(lastProject, monitor, errorParserIds, workingDirectory);
   110 								launcher.showCommand(true);
   110 								launcher.showCommand(true);
   111 								
   111 								
   112 								// only clear the markers once per project
   112 								// only clear the markers once per project