Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Treggiari2005-09-21 15:04:10 -0400
committerLeo Treggiari2005-09-21 15:04:10 -0400
commitcb882ca610ba1c9c10a52a01f121a7f9e1bb260c (patch)
tree0ebd44ba31828afa8727706a332085808aceb7f5
parentdcec32b0efe44a4276417e43bcd2008d1ea640a7 (diff)
downloadorg.eclipse.cdt-cb882ca610ba1c9c10a52a01f121a7f9e1bb260c.tar.gz
org.eclipse.cdt-cb882ca610ba1c9c10a52a01f121a7f9e1bb260c.tar.xz
org.eclipse.cdt-cb882ca610ba1c9c10a52a01f121a7f9e1bb260c.zip
Add checks for conversion to 1.2 project conversion
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProject12.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProject12.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProject12.java
index 7101f12a67..2118a3e150 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProject12.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProject12.java
@@ -38,6 +38,8 @@ import org.eclipse.cdt.managedbuilder.core.IToolReference;
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin;
import org.eclipse.cdt.managedbuilder.internal.core.ManagedBuildInfo;
+import org.eclipse.cdt.managedbuilder.internal.core.Tool;
+import org.eclipse.cdt.managedbuilder.internal.core.ToolChain;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IWorkspace;
@@ -217,7 +219,8 @@ class UpdateManagedProject12 {
// Convert the tool references
IToolChain toolChain = newConfig.getToolChain();
-
+ ((ToolChain)toolChain).checkForMigrationSupport();
+
NodeList toolRefNodes = oldConfig.getElementsByTagName(IConfigurationV2.TOOLREF_ELEMENT_NAME);
for (int refIndex = 0; refIndex < toolRefNodes.getLength(); ++refIndex) {
try{
@@ -629,6 +632,9 @@ class UpdateManagedProject12 {
throw new CoreException(new Status(IStatus.ERROR, ManagedBuilderCorePlugin.getUniqueIdentifier(), -1,
ConverterMessages.getFormattedString("UpdateManagedProject12.11",toolId), null)); //$NON-NLS-1$
+// Check for migration support
+ ((Tool)newTool).checkForMigrationSupport();
+
// The ref may or may not contain overridden options
NodeList optRefs = oldToolRef.getElementsByTagName(ITool.OPTION_REF);
for (int refIndex = optRefs.getLength() - 1; refIndex >= 0; --refIndex) {

Back to the top