Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Browser Button
Browser Button [message #70382] Tue, 13 May 2008 09:18 Go to next message
Eclipse UserFriend
Originally posted by: emailmuell.posur.com

I have some difficulties in understanding the Browser Button.
If I klick the Open Web Browser Button the internal Browser opens, if in
Window - Web Browser an other than the internal Browser is checked, when
klicking the Browser Button nothing happens.
The internal Browser is not able to show a java applet, can I solve that
problem?
Also it would be nice if the internal Browser window could open the php file
I am working with. The PHPEclipse project which I tried in the past, had
that features.
Re: Browser Button [message #70569 is a reply to message #70382] Wed, 14 May 2008 00:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: euthanasia_waltz.yahoo.co.jp.earth

Ah indeed. I'm using WindowsXP/Eclipse3.3.2/Firefox. If I select Firefox
as external Web Browser, clicking Open Web Browser button causes nothing.
If I select Internet Explorer as external browser, clicking Open Web
Browser button opens Internet Explorer. This is my case.
Well, my instant solution is
Goto Window > Preferences > General > Web Browser
Select Firefox and click edit-button. You will see Location such as
"C:\Program Files\Mozilla Firefox\firefox.exe". Edit it to DOS-form path
like as "C:\PROGRA~1\MOZILL~1\FIREFOX.EXE".
Re: Browser Button [message #70764 is a reply to message #70569] Wed, 14 May 2008 06:46 Go to previous messageGo to next message
Lester Caine is currently offline Lester CaineFriend
Messages: 65
Registered: July 2009
Member
Toshihiro wrote:
> Ah indeed. I'm using WindowsXP/Eclipse3.3.2/Firefox. If I select Firefox
> as external Web Browser, clicking Open Web Browser button causes
> nothing. If I select Internet Explorer as external browser, clicking
> Open Web Browser button opens Internet Explorer. This is my case.
> Well, my instant solution is
> Goto Window > Preferences > General > Web Browser
> Select Firefox and click edit-button. You will see Location such as
> "C:\Program Files\Mozilla Firefox\firefox.exe". Edit it to DOS-form path
> like as "C:\PROGRA~1\MOZILL~1\FIREFOX.EXE".

Usual windows bug with 'spaces in path name' - BIGGEST mistake Microsoft ever
made and it still causes problems ;)

--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
Re: Browser Button [message #70786 is a reply to message #70569] Wed, 14 May 2008 08:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: emailmuell.posur.com

> Well, my instant solution is
> Goto Window > Preferences > General > Web Browser
> Select Firefox and click edit-button. You will see Location such as
> "C:\Program Files\Mozilla Firefox\firefox.exe". Edit it to DOS-form path
> like as "C:\PROGRA~1\MOZILL~1\FIREFOX.EXE".
>
Yes thanks, I tried this workaround, but still there is no reaction if I
klick the Browser Button. The DOS-path works correctly in a command-window.
Re: Browser Button [message #70837 is a reply to message #70764] Thu, 15 May 2008 00:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: euthanasia_waltz.yahoo.co.jp.earth

No. You may be misguided by my poor solution (DOS-form path).
Rename "firefox.exe" to "firefox2.exe" and set it to the Web Browser
setting, this solve the problem too. (not sure side-effect, so I didn't
describe this)
I'm not sure but only default installation path ("C:\Program Files\Mozilla
Firefox\firefox.exe") seems to cause this problem. Other installation (I
have C:\usr\FirefoxPortable\FirefoxPortable.exe for 3beta5) works fine.

Oops, I've found "C:\Program Files\Mozilla Firefox\FIREFOX.EXE" works for
me...
Re: Browser Button [message #70876 is a reply to message #70786] Thu, 15 May 2008 00:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: euthanasia_waltz.yahoo.co.jp.earth

Though I don't know your case is same as mine, try "C:\Program
Files\Mozilla Firefox\FIREFOX.EXE".
Or rename "firefox.exe" to other name ("Copy of firefox.exe" is OK at
least for me) but this may cause other problem.(I don't know)
Or try other browser...

(btw, this bug comes from wst or platform, not pdt.)
Re: Browser Button [message #70913 is a reply to message #70876] Thu, 15 May 2008 04:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: euthanasia_waltz.yahoo.co.jp.earth

OK.
When Web Browser is set to external browser firefox,
org.eclipse.wst.server.ui.internal.webbrowser.OpenBrowserWor kbenchAction
creates MozillaBrowser instance and intend to open null url.
>IWebBrowser browser =
browserSupport.createBrowser(IWorkbenchBrowserSupport.LOCATI ON_BAR |
IWorkbenchBrowserSupport.NAVIGATION_BAR, null, null, null);
>browser.openURL(null);

However, org.eclipse.ui.internal.browser.browsers.MozillaBrowser#open URL
doesn't handle null.
>public void openURL(URL url2) {
> String url = url2.toExternalForm();
This causes NullPointerException.

This is the reason why I cannot open firefox as external browser.

If I set the file name to other than "firefox.exe" (this literal string
consists in plugin.xml of org.eclipse.ui.browser plugin), browserSupport
creates ExternalBrowserInstance instead of MozillaBrowser. And it does
handle null.
org.eclipse.ui.internal.browser.ExternalBrowserInstance#open URL
>public void openURL(URL url) throws PartInitException {
> String urlText = null;
>
> if (url != null)
> urlText = url.toExternalForm();

This is the reason why I can open renamed firefox as external browser.

The bug is in org.eclipse.ui.internal.browser.browsers.MozillaBrowser.
Over.
Re: Browser Button [message #70930 is a reply to message #70913] Thu, 15 May 2008 07:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: emailmuell.posur.com

> If I set the file name to other than "firefox.exe" (this literal string
> consists in plugin.xml of org.eclipse.ui.browser plugin), browserSupport
> creates ExternalBrowserInstance instead of MozillaBrowser. And it does
> handle null.
> org.eclipse.ui.internal.browser.ExternalBrowserInstance#open URL
>>public void openURL(URL url) throws PartInitException {
>> String urlText = null;
>>
>> if (url != null)
>> urlText = url.toExternalForm();
>
> This is the reason why I can open renamed firefox as external browser.
>
> The bug is in org.eclipse.ui.internal.browser.browsers.MozillaBrowser.
> Over.

Thanks, that did the trick for me, too.
Silly bug.
With the current version of pdt there seems to be another bug, when starting
Eclipse the outline of the last opened php file is allways empty, even if I
switch between tabs, until I press the abc-sort button, then the outline
finally appears.
Re: Browser Button [message #70948 is a reply to message #70913] Thu, 15 May 2008 10:12 Go to previous message
Eclipse UserFriend
Originally posted by: emailmuell.posur.com

Okay, I found out something else.
The ui.internal.webbrowser seems to be buggy, but case sensitive.
firefox.exe will not work.
Firefox.exe or FIREFOX.exe is okay.
This solves my problem without having any side-effects.
Thank you again.
Previous Topic:Newbie Getting "print" output to browser during debug?
Next Topic:PDT & Mylyn
Goto Forum:
  


Current Time: Fri Mar 29 01:08:57 GMT 2024

Powered by FUDForum. Page generated in 0.03283 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top