Author: jpeterka
Date: 2010-12-21 04:03:39 -0500 (Tue, 21 Dec 2010)
New Revision: 27624
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/ServerBean.java
Log:
Added method returning Runtime name into ServerBean
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/ServerBean.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/ServerBean.java 2010-12-21
08:55:38 UTC (rev 27623)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/ServerBean.java 2010-12-21
09:03:39 UTC (rev 27624)
@@ -40,4 +40,12 @@
return String.format("Server type=%s,version=%s,home=%s,withJava=%s",
this.type,this.version,this.runtimeHome,this.withJavaVersion);
}
+ /**
+ * Returns server runtime name ([type]-[version])
+ * @return server runtime name
+ */
+ public String getName() {
+ return type + "-" + version;
+ }
+
}