Author: snjeza
Date: 2011-09-01 17:45:15 -0400 (Thu, 01 Sep 2011)
New Revision: 34493
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java
Log:
JBIDE-9335 Multiple detected runtime indexes miss the brackets
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java
===================================================================
---
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java 2011-09-01
20:30:48 UTC (rev 34492)
+++
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/dialogs/SearchRuntimePathDialog.java 2011-09-01
21:45:15 UTC (rev 34493)
@@ -330,9 +330,9 @@
if (!RuntimeUIActivator.runtimeCreated(serverDefinition)) {
List<ServerDefinition> allServerDefinitions =
RuntimeUIActivator.getDefault().getServerDefinitions();
String name = serverDefinition.getName();
- int i = 1;
+ int i = 2;
while (serverDefinitionsExists(serverDefinition, allServerDefinitions)) {
- serverDefinition.setName(name + " " + i++);
+ serverDefinition.setName(name + " (" + i++ + ")");
}
}
if (!hideCreatedRuntimes) {
Show replies by date