Skip to main content



      Home
Home » Newcomers » Newcomers » How to stop Eclipse grabbing the first browser window it sees for Help
How to stop Eclipse grabbing the first browser window it sees for Help [message #48617] Thu, 07 April 2005 12:47 Go to next message
Eclipse UserFriend
Originally posted by: ogilviep.xs4all.nl

Every time I request Online help with F1, Eclipse grabs the first (topmost)
browser window and places help there, overwriting any article I was reading
in that browser window.

How can I stop that? How to tell Eclipse to open one new (named) window and
place all help there and leave my other browser windows alone?

Platform: Win32/XP, IE6

Paul Ogilvie.
Re: How to stop Eclipse grabbing the first browser window it sees for Help [message #48678 is a reply to message #48617] Thu, 07 April 2005 13:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.gmail.com

Paul,

If you were using Firefox, you could specify to open links from external
applications in a new window, or a new tab of the most recent window
(Tools->Options->Advanced). I don't know if IE provides a similar option.

- Jeff

Paul Ogilvie wrote:
> Every time I request Online help with F1, Eclipse grabs the first (topmost)
> browser window and places help there, overwriting any article I was reading
> in that browser window.
>
> How can I stop that? How to tell Eclipse to open one new (named) window and
> place all help there and leave my other browser windows alone?
>
> Platform: Win32/XP, IE6
>
> Paul Ogilvie.
>
>
Re: How to stop Eclipse grabbing the first browser window it sees for Help [message #48740 is a reply to message #48617] Thu, 07 April 2005 14:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aravindr.senior-systems.com

Hi Paul,

Turn off the "Reuse windows for launching shortcuts" under Tools->Internet
Options-> Advanced->Browsing.


HTH,

Aravind

"Paul Ogilvie" <ogilviep@xs4all.nl> wrote in message
news:d33odt$pfk$1@news.eclipse.org...
> Every time I request Online help with F1, Eclipse grabs the first
> (topmost) browser window and places help there, overwriting any article I
> was reading in that browser window.
>
> How can I stop that? How to tell Eclipse to open one new (named) window
> and place all help there and leave my other browser windows alone?
>
> Platform: Win32/XP, IE6
>
> Paul Ogilvie.
>
>
Re: How to stop Eclipse grabbing the first browser window it sees for Help [message #49165 is a reply to message #48678] Fri, 08 April 2005 07:18 Go to previous message
Eclipse UserFriend
Originally posted by: ogilviep.xs4all.nl

This is a multi-part message in MIME format.

------=_NextPart_000_0010_01C53C3D.66BC3850
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Jeff said he didn't know;
Aravind suggested to turn 'reuse windows' off -- but that opens each =
topic in a new window.

The key problem is that IE doesn't know any command line switches to =
tell it something and it takes the parameter(s) on the commandline to be =
the URL.

My solution isn't perfect but has the following advantages:
- has one window for all Eclipse help
- this keeps the history of help so 'back' works
- brings the window rto the foreground when invoked.

The solution uses a small script to redirect the help URL to one window: =
set the help preferences to use Custom Browser and use the following =
command:
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" =
file://c:/eclipse/MyHelp.html?%1

The file MyHelp.html looks like <see below>.
The only problem left is to close the unneeded window. window.close() =
works but asks the user for a confirmation, thus stalling the browser. =
At least I am only left with a lot of empty windows.

Regards & thanks for the suggestions,
Paul.

<plaintext><html><head><script> var s=3D =
location.search.substr(location.search.indexOf("http")); if =
(self.name !=3D "eclipseHelp") { var eWin=3D null; try =
{ eWin=3D window.open("","eclipseHelp"); =
eWin.focus(); if (history.length >0) { =
history.back(); } else { =
//window.close(); location.replace("about:blank"); =
} } catch(e) { self.name=3D"eclipseHelp"; =
location.replace(s); } } else { =
location.replace(s); }</script></head><body></body></html>

"Jeff Myers" <myersj@gmail.com> wrote in message =
news:d33pj8$rgm$1@news.eclipse.org...
> Paul,
>=20
> If you were using Firefox, you could specify to open links from =
external=20
> applications in a new window, or a new tab of the most recent window=20
> (Tools->Options->Advanced). I don't know if IE provides a similar =
option.
>=20
> - Jeff
>=20
> Paul Ogilvie wrote:
>> Every time I request Online help with F1, Eclipse grabs the first =
(topmost)=20
>> browser window and places help there, overwriting any article I was =
reading=20
>> in that browser window.
>>=20
>> How can I stop that? How to tell Eclipse to open one new (named) =
window and=20
>> place all help there and leave my other browser windows alone?
>>=20
>> Platform: Win32/XP, IE6
>>=20
>> Paul Ogilvie.
>>=20
>>
------=_NextPart_000_0010_01C53C3D.66BC3850
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2604" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Jeff said he didn't know;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Aravind suggested to turn 'reuse =
windows' off --=20
but that opens each topic in a new window.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The key problem is that IE doesn't know =
any command=20
line switches to tell it something and it takes the parameter(s) on the=20
commandline to be the URL.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My solution isn't perfect but has the =
following=20
advantages:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- has one window for all Eclipse =
help</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- this keeps the history of help so =
'back'=20
works</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- brings the window rto the foreground =
when=20
invoked.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The solution uses a small script to =
redirect the=20
help URL to one window: set the help preferences to use Custom Browser =
and use=20
the following command:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"C:\Program Files\Internet =
Explorer\IEXPLORE.EXE"=20
</FONT><A href=3D"file://c:/eclipse/MyHelp.html?%1"><FONT face=3DArial=20
size=3D2>file://c:/eclipse/MyHelp.html?%1</FONT></A></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The file MyHelp.html looks like &lt;see =

below&gt;.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The only problem left is to close the =
unneeded=20
window. window.close() works but asks the user for a confirmation, thus =
stalling=20
the browser. At least I am only left with a lot of empty =
windows.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards &amp; thanks for the=20
suggestions,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Paul.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><PRE><FONT =
color=3D#0000ff =
size=3D2><P>&lt;plaintext&gt;</P><P>&lt;html&gt; </P><P>&lt;head&gt;</P><P=
>&lt;script&gt;</P></FONT><FONT color=3D#007f00 size=3D2></FONT><FONT =
color=3D#0000aa size=3D2><P>&nbsp;&nbsp;&nbsp; var s=3D =
location.search.substr(location.search.indexOf("http"));</P ><P>&nbsp;&nbs=
p;&nbsp; if (self.name !=3D "eclipseHelp")</P><P>&nbsp;&nbsp;&nbsp; =
{</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var eWin=3D =
null;</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; try =
{</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; eWin=3D =
window.open("","eclipseHelp");</P><P>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
eWin.focus();</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; if (history.length &gt;0) {</P><P>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
history.back();</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; else {</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
//window.close();</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
location.replace("about:blank");</P><P>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
catch(e) {</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; self.name=3D"eclipseHelp";</P><P>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
location.replace(s);</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
}</P><P>&nbsp;&nbsp;&nbsp; }</P><P>&nbsp;&nbsp;&nbsp; else =
{</P><P>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
location.replace(s);</P><P>&nbsp;&nbsp;&nbsp; }</P></FONT><FONT =
color=3D#0000ff =
size=3D2><P>&lt;/script&gt;</P><P>&lt;/head&gt; </P><P>&lt;body&gt;</P><P>=
&lt;/body&gt;</P><P>&lt;/html&gt;</P></FONT ></PRE>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Jeff Myers" &lt;</FONT><A=20
href=3D"mailto:myersj@gmail.com"><FONT face=3DArial=20
size=3D2>myersj@gmail.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in message=20
</FONT><A href=3D"news:d33pj8$rgm$1@news.eclipse.org"><FONT face=3DArial =

size=3D2>news:d33pj8$rgm$1@news.eclipse.org</FONT></A><FONT face=3DArial =

size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; Paul,<BR>&gt; =
<BR>&gt; If=20
you were using Firefox, you could specify to open links from external =
<BR>&gt;=20
applications in a new window, or a new tab of the most recent window =
<BR>&gt;=20
(Tools-&gt;Options-&gt;Advanced).&nbsp; I don't know if IE provides a =
similar=20
option.<BR>&gt; <BR>&gt;&nbsp; - Jeff<BR>&gt; <BR>&gt; Paul Ogilvie=20
wrote:<BR>&gt;&gt; Every time I request Online help with F1, Eclipse =
grabs the=20
first (topmost) <BR>&gt;&gt; browser window and places help there, =
overwriting=20
any article I was reading <BR>&gt;&gt; in that browser =
window.<BR>&gt;&gt;=20
<BR>&gt;&gt; How can I stop that? How to tell Eclipse to open one new =
(named)=20
window and <BR>&gt;&gt; place all help there and leave my other browser =
windows=20
alone?<BR>&gt;&gt; <BR>&gt;&gt; Platform: Win32/XP, IE6<BR>&gt;&gt; =
<BR>&gt;&gt;=20
Paul Ogilvie.<BR>&gt;&gt; <BR>&gt;&gt;</FONT></BODY></HTML>

------=_NextPart_000_0010_01C53C3D.66BC3850--
Previous Topic:cvs view empty!
Next Topic:multiple workspaces?
Goto Forum:
  


Current Time: Thu May 08 09:32:05 EDT 2025

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

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

Back to the top