geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r419577 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/actions/LaunchGeronimoConsoleAction.java
Date Thu, 06 Jul 2006 15:16:41 GMT
Author: sppatel
Date: Thu Jul  6 08:16:40 2006
New Revision: 419577

URL: http://svn.apache.org/viewvc?rev=419577&view=rev
Log:
GERONIMODEVTOOLS-89

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/actions/LaunchGeronimoConsoleAction.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/actions/LaunchGeronimoConsoleAction.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/actions/LaunchGeronimoConsoleAction.java?rev=419577&r1=419576&r2=419577&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/actions/LaunchGeronimoConsoleAction.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/org/apache/geronimo/st/ui/actions/LaunchGeronimoConsoleAction.java
Thu Jul  6 08:16:40 2006
@@ -32,7 +32,7 @@
 
 public class LaunchGeronimoConsoleAction implements IActionDelegate {
 
-	public static final String serverID = "org.apache.geronimo.generic.server.10";
+	public static final String G_SERVER_PREFIX = "org.apache.geronimo";
 
 	private IServer server;
 
@@ -82,7 +82,7 @@
 		server = (IServer) ((StructuredSelection) selection).getFirstElement();
 
 		boolean enable = server != null
-				&& serverID.equals(server.getServerType().getId())
+				&& server.getServerType().getId().startsWith(G_SERVER_PREFIX)
 				&& server.getServerState() == IServer.STATE_STARTED;
 
 		action.setEnabled(enable);



Mime
View raw message