Author: rob.stryker(a)jboss.com
Date: 2009-06-03 01:09:36 -0400 (Wed, 03 Jun 2009)
New Revision: 15667
Modified:
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
Log:
JBIDE-4092 - added 1 in the runtime name
Modified:
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java
===================================================================
---
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java 2009-06-03
02:52:16 UTC (rev 15666)
+++
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java 2009-06-03
05:09:36 UTC (rev 15667)
@@ -36,7 +36,8 @@
public static String wf_ConfigLabel;
public static String JBAS_version;
public static String JBEAP_version;
- public static String rwf_Title;
+ public static String rwf_Title1;
+ public static String rwf_Title2;
public static String rwf_Explanation;
public static String rwf_BaseName;
public static String rwf_NameInUse;
Modified:
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties
===================================================================
---
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties 2009-06-03
02:52:16 UTC (rev 15666)
+++
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties 2009-06-03
05:09:36 UTC (rev 15667)
@@ -6,7 +6,8 @@
wf_HomeDirLabel=Home Directory
wf_JRELabel=JRE
wf_ConfigLabel=Configuration
-rwf_Title=Create a new JBoss Runtime
+rwf_Title1=Create a new JBoss Server Runtime
+rwf_Title2=Edit a JBoss Server Runtime
rwf_Explanation=A JBoss Server runtime references a JBoss installation directory.\nIt can
be used to set up classpaths for projects which depend on this runtime,\nas well as by a
"server" which will be able to start and stop instances of JBoss.
rwf_BaseName=JBoss _VERSION_ Runtime
rwf_NameInUse=Runtime name already in use
Modified:
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
===================================================================
---
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2009-06-03
02:52:16 UTC (rev 15666)
+++
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2009-06-03
05:09:36 UTC (rev 15667)
@@ -119,7 +119,10 @@
IRuntime r = (IRuntime) getTaskModel()
.getObject(TaskModel.TASK_RUNTIME);
String version = r.getRuntimeType().getVersion();
- handle.setTitle(Messages.rwf_Title);
+ if( r.isWorkingCopy() && ((IRuntimeWorkingCopy)r).getOriginal() == null)
+ handle.setTitle(Messages.rwf_Title1);
+ else
+ handle.setTitle(Messages.rwf_Title2);
String description = NLS.bind(
isEAP() ? Messages.JBEAP_version : Messages.JBAS_version,
version);
@@ -160,7 +163,7 @@
IRuntime r = (IRuntime) getTaskModel()
.getObject(TaskModel.TASK_RUNTIME);
String oldName = r.getName();
- if( r.isWorkingCopy() ) {
+ if( r.isWorkingCopy() && ((IRuntimeWorkingCopy)r).getOriginal() == null) {
String newName = oldName.replace("Enterprise Application Platform",
"EAP");
newName = LocalJBossServerRuntime.getNextRuntimeName(newName);
((IRuntimeWorkingCopy)r).setName(newName);
Show replies by date