Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » launch help url in internal browser
launch help url in internal browser [message #469593] Tue, 11 September 2007 15:11 Go to next message
Scott is currently offline ScottFriend
Messages: 33
Registered: July 2009
Member
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 #469597 is a reply to message #469593] Tue, 11 September 2007 16:40 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
If you add the parameter noframes=true that will suppress the frame
generation. For example
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.user/tips/platform_tips.html?noframes=true

will give a different result than what you would get if you left off the
noframes parameter.
Re: launch help url in internal browser [message #469602 is a reply to message #469597] Tue, 11 September 2007 17:03 Go to previous messageGo to next message
Scott is currently offline ScottFriend
Messages: 33
Registered: July 2009
Member
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 #469608 is a reply to message #469602] Tue, 11 September 2007 19:04 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Off the top of my head I don't know the answer to that one - I haven't
tried to use the help browser to open anything other than the help system.
Re: launch help url in internal browser [message #469611 is a reply to message #469608] Tue, 11 September 2007 20:12 Go to previous message
Scott is currently offline ScottFriend
Messages: 33
Registered: July 2009
Member
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 #576408 is a reply to message #469593] Tue, 11 September 2007 16:40 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
If you add the parameter noframes=true that will suppress the frame
generation. For example
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.user/tips/platform_tips.html?noframes=true

will give a different result than what you would get if you left off the
noframes parameter.
Re: launch help url in internal browser [message #576473 is a reply to message #469597] Tue, 11 September 2007 17:03 Go to previous message
Scott is currently offline ScottFriend
Messages: 33
Registered: July 2009
Member
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 #576539 is a reply to message #469602] Tue, 11 September 2007 19:04 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Off the top of my head I don't know the answer to that one - I haven't
tried to use the help browser to open anything other than the help system.
Re: launch help url in internal browser [message #576589 is a reply to message #469608] Tue, 11 September 2007 20:12 Go to previous message
Scott is currently offline ScottFriend
Messages: 33
Registered: July 2009
Member
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.
Previous Topic:Help->Search preferences
Next Topic:Using displayHelpResource()
Goto Forum:
  


Current Time: Sun May 12 07:36:31 GMT 2024

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

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

Back to the top