Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorKen Ryall2008-04-07 20:15:21 +0000
committerKen Ryall2008-04-07 20:15:21 +0000
commit97a10ee586ea2b454c3617b26c121e7479b7e7fe (patch)
tree89b431fc56cd39d96e527c87c68e23c6619418b4 /debug
parent35dfb7a9a99169b69b5926b3895894fe09389c5c (diff)
downloadorg.eclipse.cdt-97a10ee586ea2b454c3617b26c121e7479b7e7fe.tar.gz
org.eclipse.cdt-97a10ee586ea2b454c3617b26c121e7479b7e7fe.tar.xz
org.eclipse.cdt-97a10ee586ea2b454c3617b26c121e7479b7e7fe.zip
If the existing executables project is closed, use a new one.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableImporter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableImporter.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableImporter.java
index 3d9a20729d..0b9cbc98b1 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableImporter.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableImporter.java
@@ -78,6 +78,12 @@ public class StandardExecutableImporter implements IExecutableImporter {
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IProject newProjectHandle = workspace.getRoot().getProject(defaultProjectName);
+ int projectSuffix = 2;
+ while (newProjectHandle.exists()){
+ newProjectHandle = workspace.getRoot().getProject(defaultProjectName + projectSuffix);
+ projectSuffix++;
+ }
+
IProjectDescription description = workspace.newProjectDescription(newProjectHandle.getName());
description.setLocation(null);
IFileStore store;

Back to the top