How to stop Eclipse grabbing the first browser window it sees for Help [message #48617] |
Thu, 07 April 2005 12:47  |
Eclipse User |
|
|
|
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 #49165 is a reply to message #48678] |
Fri, 08 April 2005 07:18  |
Eclipse User |
|
|
|
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> </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> </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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>The file MyHelp.html looks like <see =
below>.</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> </DIV>
<DIV><FONT face=3DArial size=3D2>Regards & thanks for the=20
suggestions,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Paul.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV><PRE><FONT =
color=3D#0000ff =
size=3D2><P><plaintext></P><P><html> </P><P><head></P><P=
><script></P></FONT><FONT color=3D#007f00 size=3D2></FONT><FONT =
color=3D#0000aa size=3D2><P> var s=3D =
location.search.substr(location.search.indexOf("http"));</P ><P> &nbs=
p; if (self.name !=3D "eclipseHelp")</P><P> =
{</P><P> var eWin=3D =
null;</P><P> try =
{</P><P> eWin=3D =
window.open("","eclipseHelp");</P><P> =
=
eWin.focus();</P><P> =
if (history.length >0) {</P><P> =
=
history.back();</P><P> =
}</P><P> =
else {</P><P> =
=
//window.close();</P><P> =
=
location.replace("about:blank");</P><P> =
}</P><P> =
}</P><P> =
catch(e) {</P><P> =
self.name=3D"eclipseHelp";</P><P> =
=
location.replace(s);</P><P> =
}</P><P> }</P><P> else =
{</P><P> =
location.replace(s);</P><P> }</P></FONT><FONT =
color=3D#0000ff =
size=3D2><P></script></P><P></head> </P><P><body></P><P>=
</body></P><P></html></P></FONT ></PRE>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>"Jeff Myers" <</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>> =
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>> Paul,<BR>> =
<BR>> If=20
you were using Firefox, you could specify to open links from external =
<BR>>=20
applications in a new window, or a new tab of the most recent window =
<BR>>=20
(Tools->Options->Advanced). I don't know if IE provides a =
similar=20
option.<BR>> <BR>> - Jeff<BR>> <BR>> Paul Ogilvie=20
wrote:<BR>>> Every time I request Online help with F1, Eclipse =
grabs the=20
first (topmost) <BR>>> browser window and places help there, =
overwriting=20
any article I was reading <BR>>> in that browser =
window.<BR>>>=20
<BR>>> How can I stop that? How to tell Eclipse to open one new =
(named)=20
window and <BR>>> place all help there and leave my other browser =
windows=20
alone?<BR>>> <BR>>> Platform: Win32/XP, IE6<BR>>> =
<BR>>>=20
Paul Ogilvie.<BR>>> <BR>>></FONT></BODY></HTML>
------=_NextPart_000_0010_01C53C3D.66BC3850--
|
|
|
Powered by
FUDForum. Page generated in 0.12949 seconds