diff options
author | Jared Burns | 2004-09-13 20:37:21 +0000 |
---|---|---|
committer | Jared Burns | 2004-09-13 20:37:21 +0000 |
commit | f6d0a490be676498dff0cf3d2042e750a719c8e7 (patch) | |
tree | 2cf9430609b2993832f893bf099e3ab47c9b8099 /org.eclipse.ui.externaltools | |
parent | 2ec79807879efaf51fcf847e3138429be9c8a1ac (diff) | |
download | eclipse.platform.debug-f6d0a490be676498dff0cf3d2042e750a719c8e7.tar.gz eclipse.platform.debug-f6d0a490be676498dff0cf3d2042e750a719c8e7.tar.xz eclipse.platform.debug-f6d0a490be676498dff0cf3d2042e750a719c8e7.zip |
Bug 67980 - Prolog error message in console
Diffstat (limited to 'org.eclipse.ui.externaltools')
-rw-r--r-- | org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java index a2275c550..e253213e0 100644 --- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java +++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/model/BuilderUtils.java @@ -90,23 +90,22 @@ public class BuilderUtils { configuration= manager.getLaunchConfiguration(file); } } else { - try { - // Treat the configHandle as a memento. This is the format - // used in Eclipse 2.1. - configuration = manager.getLaunchConfiguration(configHandle); - } catch (CoreException e) { - } - if (configuration != null) { - version[0]= VERSION_2_1; - } else { - // If the memento failed, try treating the handle as a file name. - // This is the format used in 3.0 RC1. + // Try treating the handle as a file name. + // This is the format used in 3.0 RC1. + IPath path= new Path(BUILDER_FOLDER_NAME).append(configHandle); + IFile file= project.getFile(path); + if (file.exists()) { version[0]= VERSION_3_0_interim; - IPath path= new Path(BUILDER_FOLDER_NAME).append(configHandle); - IFile file= project.getFile(path); - if (file.exists()) { - version[0]= VERSION_3_0_interim; - configuration= manager.getLaunchConfiguration(file); + configuration= manager.getLaunchConfiguration(file); + } else { + try { + // Treat the configHandle as a memento. This is the format + // used in Eclipse 2.1. + configuration = manager.getLaunchConfiguration(configHandle); + } catch (CoreException e) { + } + if (configuration != null) { + version[0]= VERSION_2_1; } } } |