Change default browser in dev mode

927 views
Skip to first unread message

tombs

unread,
Oct 20, 2010, 5:49:33 AM10/20/10
to Google Web Toolkit
Is there any way to change the default web browser used when running a
GWT web app in dev mode? My researches so far have failed to find any
way.

Currently dev mode runs the browser I have set as default on my system
(Windows XP) which is a reasonable thing to do, but I need GWT to run
a different browser.

If this is not possible, it is possible to stop dev mode from
automatically launching the browser? If so I can cut & paste the URL
from the dev mode window to my desired browser without the annoyance
and delay of the default browser first popping up and complaining
about the GWT plug-in not being available. (Since it is FF4, there
truly is no GWT plug-in available.)

A. Stevko

unread,
Oct 20, 2010, 5:22:06 PM10/20/10
to google-we...@googlegroups.com
Not sure which IDE you are using but, using elicpse, the development mode box that lists the urls states:

For your convenience, here are some URLs that you may wish to view in development mode. Simply copy/paste a url below into any supported browser.

Also, in eclipse, under the menu Window  | Web Browser, you can choose which browser will open.




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Chris Conroy

unread,
Oct 20, 2010, 5:37:47 PM10/20/10
to Google Web Toolkit
Even the old school GWTShell Swing GUI has a "Copy URL" button. So I really can't make sense of the OP's post.

magic

unread,
Oct 21, 2010, 1:29:00 AM10/21/10
to Google Web Toolkit


On Oct 21, 6:37 am, Chris Conroy <con...@google.com> wrote:
> Even the old school GWTShell Swing GUI has a "Copy URL" button. So I really
> can't make sense of the OP's post.
>
Please try reading the last paragraph of my post again where I note
that I can use copy and paste and refer to the annoyance of my default
browser popping up. When I run my app. in dev mode, GWT starts my
default browser (FF4) raising a window covering basically the entire
screen. I then have to find the GWT window to copy the URL and my
Chrome browser to paste it. It is all very time consuming. So I want
to either switch the browser that GWT will use or prevent it from
launching my default browser.

I do not want to use Chrome as the default browser on my system and I
can't use FF4 with GWT because the plug-in is not available for FF4.
Since I'm working with WebGL, FF3 is insufficient.

magic

unread,
Oct 21, 2010, 1:32:46 AM10/21/10
to Google Web Toolkit
I am using NetBeans. However the browser is launched by the GWT
DevMode gizmo which picks the system default browser. So I don't
understand what Eclipse's Window | Web Browser menu item would have to
do with it. Please enlighten me.

Chris Conroy

unread,
Oct 21, 2010, 11:20:44 AM10/21/10
to Google Web Toolkit
I'm not sure what GWT DevMode gizmo you are referring to. Perhaps this is a netbeans issue? GWT itself doesn't launch the browser except from GPE (eclipse) or GWTShell, and GWTShell will only launch it if you hit the 'Launch Browser' button.

Could you post a screenshot of what you're talking about?

A. Stevko

unread,
Oct 21, 2010, 12:26:43 PM10/21/10
to google-we...@googlegroups.com
ahh, so you are using netbeans. of course eclipse tips will not help you.
a quick search of stackoverflow might reveal a solution for you...

magic

unread,
Oct 22, 2010, 6:28:03 AM10/22/10
to Google Web Toolkit
I don't know how to post an image to one of these lists. What I am
talking about is a separate window that opens when I pick "GWT DevMode
w/o JEE" from the Debug menu. It is titled GWT DevMode and has two
tabs initially, titled Development Mode and Jetty. A third titled
(Chrome) of (FF) appears after the browser has connected.
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .

magic

unread,
Oct 22, 2010, 6:34:35 AM10/22/10
to Google Web Toolkit
Thank you very much. Changing the browser in NetBeans as described in
the post did the trick, making life much easier.

I did not find this in my searches before my original posting to this
list because it contains no mention of GWT. I was misled by some GWT
documentation that contained something to the effect of "GWT DevMode
uses some heuristics to determine which default browser to run" into
believing that GWT DevMode was launching the browser. Hence my
searches focused on that. In hindsight, this piece of text must be
referring to the "Launch Default Browser" button on the GWT
Development Mode window's Development Mode tab, since it is clearly
NetBeans that is automatically launching the browser.

On Oct 22, 1:26 am, "A. Stevko" <andy.ste...@gmail.com> wrote:
> ahh, so you are using netbeans. of course eclipse tips will not help you.
> a quick search of stackoverflow might reveal a solution for you...http://stackoverflow.com/questions/856108/how-to-change-settings-in-n...
>
>
>
>
>
>
>
> On Wed, Oct 20, 2010 at 10:32 PM, magic <callow_m...@hicorp.co.jp> wrote:
> > I am using NetBeans. However the browser is launched by the GWT
> > DevMode gizmo which picks the system default browser. So I don't
> > understand what Eclipse's Window | Web Browser menu item would have to
> > do with it. Please enlighten me.
>
> > On Oct 21, 6:22 am, "A. Stevko" <andy.ste...@gmail.com> wrote:
>
> > > Also, in eclipse, under the menu Window  | Web Browser, you can choose
> > which
> > > browser will open.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages