launch help url in internal browser [message #469593] |
Tue, 11 September 2007 11:11  |
Eclipse User |
|
|
|
I can launch a help topic by doing the following:
PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e(myDocHref);
However that always has the Help System navigation frame. I want just the
topic.
I can get the URL for just the topic as follows:
URL url = PlatformUI.getWorkbench().getHelpSystem().resolve(myDocHref,
true);
(the second arg 'true' says the document only...without navigation frame)
Is there any way to launch that URL in the 'help browser'...meaning the
eclipse browser, with no tool bar/address bar/etc.
If I do:
PlatformUI.getWorkbench().getBrowserSupport().createBrowser( "myBrowser").openURL(url);
I get a firefox window.
I want to be able to launch the help browser with just a topic. I think I
could do my own browser implementation with a Browser widget...but it
would be much easier if I could just use the same 'internal' browser that
help uses to show any url.
Thanks for any suggestions...
|
|
|
|
|
|
Re: launch help url in internal browser [message #469611 is a reply to message #469608] |
Tue, 11 September 2007 16:12  |
Eclipse User |
|
|
|
digging into the code a little, it looks like you should be able to
specify ?noframes=true on an href. However, specifying that forces the
help to launch in an external browser anyhow. So...I think what I want to
do is not possible through the help system. Thanks.
|
|
|
|
Re: launch help url in internal browser [message #576473 is a reply to message #469597] |
Tue, 11 September 2007 13:03  |
Eclipse User |
|
|
|
Thanks for the reply. In your example you are appending the noframes arg
to a URL. To accomplish what I'm trying to accomplish, I would have to be
able to append it to the href in order to launch in the 'help browser'
PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e(href+ "?noframes=true");
but this results in "An exception occurred while launching help"
I can get an appropriate URL generated...but if I launch the URL myself,
it is in a real broswer window (Firefox, IE). I want to launch in an
'eclipse browser' like the help system does with a displayHelpResource
call...a non-branded browser.
So I guess maybe my question can be taken out of the context of help. How
would I launch any URL in a non-external browser?
Thanks,
Scott
|
|
|
|
Re: launch help url in internal browser [message #576589 is a reply to message #469608] |
Tue, 11 September 2007 16:12  |
Eclipse User |
|
|
|
digging into the code a little, it looks like you should be able to
specify ?noframes=true on an href. However, specifying that forces the
help to launch in an external browser anyhow. So...I think what I want to
do is not possible through the help system. Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.04036 seconds