Allow cancellation of long project scanning processes (found when looking at #10318 and #10533)
--- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/builder/EpocEngineHelper.java Tue Jan 19 11:17:44 2010 -0600
+++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/builder/EpocEngineHelper.java Tue Jan 19 11:20:59 2010 -0600
@@ -94,6 +94,8 @@
SymbianBuildContextDataCache.startProjectOperation();
for (final ISymbianBuildContext context : buildConfigs) {
+ if (monitor.isCanceled())
+ break;
EpocEnginePlugin.runWithBldInfData(bldInfFilePath,
new DefaultViewConfiguration(context, bldInfFilePath, new AcceptedNodesViewFilter()),
new BldInfDataRunnableAdapter() {
@@ -157,6 +159,8 @@
SymbianBuildContextDataCache.startProjectOperation();
for (final ISymbianBuildContext context : buildConfigs) {
+ if (monitor.isCanceled())
+ break;
EpocEnginePlugin.runWithBldInfData(bldInfFilePath,
new DefaultViewConfiguration(context, bldInfFilePath, new AcceptedNodesViewFilter()),
new BldInfDataRunnableAdapter() {
@@ -213,6 +217,8 @@
SymbianBuildContextDataCache.startProjectOperation();
for (final ISymbianBuildContext context : buildConfigs) {
+ if (monitor.isCanceled())
+ break;
EpocEnginePlugin.runWithBldInfData(bldInfFilePath,
new DefaultViewConfiguration(context, bldInfFilePath, new AcceptedNodesViewFilter()),
new BldInfDataRunnableAdapter() {
@@ -265,6 +271,8 @@
SymbianBuildContextDataCache.startProjectOperation();
for (final ISymbianBuildContext context : buildConfigs) {
+ if (monitor.isCanceled())
+ break;
EpocEnginePlugin.runWithBldInfData(bldInfFilePath,
new DefaultViewConfiguration(context, bldInfFilePath, new AcceptedNodesViewFilter()),
new BldInfDataRunnableAdapter() {