Browser Button [message #70382] |
Tue, 13 May 2008 09:18 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 #70786 is a reply to message #70569] |
Wed, 14 May 2008 08:24 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03705 seconds