geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tki...@apache.org
Subject svn commit: r685279 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/LaunchGeronimoSupportAction.java
Date Tue, 12 Aug 2008 19:38:32 GMT
Author: tkirby
Date: Tue Aug 12 12:38:32 2008
New Revision: 685279

URL: http://svn.apache.org/viewvc?rev=685279&view=rev
Log:
GERONIMODEVTOOLS-477 Add a Support popup menu option to a server to launch a browser window
to Geronimo Home page
enable menu item, popup external browser

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

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/LaunchGeronimoSupportAction.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/LaunchGeronimoSupportAction.java?rev=685279&r1=685278&r2=685279&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/LaunchGeronimoSupportAction.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/actions/LaunchGeronimoSupportAction.java
Tue Aug 12 12:38:32 2008
@@ -19,7 +19,7 @@
  */
 public class LaunchGeronimoSupportAction implements IActionDelegate {
 
-	public static final String WASCE_SERVER_PREFIX = "com.ibm.wasce";
+	public static final String GERONIMO_SERVER_PREFIX = "org.apache.geronimo";
 
 	private IServer server;
 
@@ -42,7 +42,7 @@
 	public void run(IAction action) {
 
 		try {
-			int style = IWorkbenchBrowserSupport.AS_EDITOR
+			int style = IWorkbenchBrowserSupport.AS_EXTERNAL
 					| IWorkbenchBrowserSupport.STATUS;
 			IWebBrowser browser = WorkbenchBrowserSupport.getInstance()
 					.createBrowser(
@@ -73,7 +73,7 @@
                 server = (IServer) ((StructuredSelection) selection).getFirstElement();
 
                 boolean enable = server != null
-                                && server.getServerType().getId().startsWith(WASCE_SERVER_PREFIX);
+                                && server.getServerType().getId().startsWith(GERONIMO_SERVER_PREFIX);
 
                 action.setEnabled(enable);
 



Mime
View raw message