Author: dgeraskov
Date: 2008-08-25 08:14:59 -0400 (Mon, 25 Aug 2008)
New Revision: 9880
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2682
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java 2008-08-25
09:32:41 UTC (rev 9879)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java 2008-08-25
12:14:59 UTC (rev 9880)
@@ -38,6 +38,8 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
+import org.eclipse.debug.core.DebugPlugin;
+import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
@@ -529,7 +531,9 @@
}
if(v.javaProject!=null) {
- configurationNameText.setText(v.javaProject.getElementName() );
+ ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();
+ String uniqName =
lm.generateUniqueLaunchConfigurationNameFrom(v.javaProject.getElementName());
+ configurationNameText.setText(uniqName);
projectNameText.setText(v.javaProject.getElementName());
}
if (v.propertyFile!=null) {