geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r353931 - /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java
Date Sun, 04 Dec 2005 23:13:58 GMT
Author: sppatel
Date: Sun Dec  4 15:13:45 2005
New Revision: 353931

URL: http://svn.apache.org/viewcvs?rev=353931&view=rev
Log:
fix embedded console not launching

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

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java?rev=353931&r1=353930&r2=353931&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java
Sun Dec  4 15:13:45 2005
@@ -47,7 +47,8 @@
     
     public URL getConsoleUrl() throws MalformedURLException {
     	if(server != null ) {
-    		return new URL("http://" + server.getHost() + ":" + ((GeronimoServer) server).getHTTPPort()
+ "/console/");
+    		GeronimoServer gs = (GeronimoServer) server.getAdapter(GeronimoServer.class);
+    		return new URL("http://" + server.getHost() + ":" + gs.getHTTPPort() + "/console/");
     	}
         return null;
     }
@@ -60,7 +61,7 @@
     public void run(IAction action) {
 
         try {
-            int style = IWorkbenchBrowserSupport.AS_EDITOR | IWorkbenchBrowserSupport.LOCATION_BAR
| IWorkbenchBrowserSupport.STATUS;
+            int style = IWorkbenchBrowserSupport.AS_EDITOR | IWorkbenchBrowserSupport.STATUS;
             IWebBrowser browser = WorkbenchBrowserSupport.getInstance().createBrowser(style,
"console", Messages.console, Messages.consoleTooltip);
             URL url = getConsoleUrl();
             if(url != null) 



Mime
View raw message