Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » WorkbenchHelp.getHelpSupport() technical question...
WorkbenchHelp.getHelpSupport() technical question... [message #183010] Wed, 21 January 2004 12:59 Go to next message
Eclipse UserFriend
Originally posted by: leonki.yahoo.com

I'm trying to write a plugin that at some point automatically launches a
web browser with a URL in it. Here's part of the code:

IHelp helpSupport = WorkbenchHelp.getHelpSupport();
if (helpSupport != null) {
helpSupport.displayHelpResource("http://www.microsoft.com");
}

Every time this code executes, I get the following error:

Unhandled exception caught in event loop.
Reason:
org/eclipse/help/IHelp

Even when I create the simplest plugin (hello world) and put the above
code into the run() function (as well as add the required imports) it
gives me this error. I'm running eclipse 2.1.

Is there any other way to launch web browsers from Eclipse with a given
URL? Am I missing an important step somewhere???

Thanks.
Re: WorkbenchHelp.getHelpSupport() technical question... [message #183029 is a reply to message #183010] Wed, 21 January 2004 13:21 Go to previous message
Eclipse UserFriend
Have you set your plugin to require the help plugins in the plugin.xml of
your plugin?

Darins

"Leon Kiriliuk" <leonki@yahoo.com> wrote in message
news:bumelo$cr9$1@eclipse.org...
> I'm trying to write a plugin that at some point automatically launches a
> web browser with a URL in it. Here's part of the code:
>
> IHelp helpSupport = WorkbenchHelp.getHelpSupport();
> if (helpSupport != null) {
> helpSupport.displayHelpResource("http://www.microsoft.com");
> }
>
> Every time this code executes, I get the following error:
>
> Unhandled exception caught in event loop.
> Reason:
> org/eclipse/help/IHelp
>
> Even when I create the simplest plugin (hello world) and put the above
> code into the run() function (as well as add the required imports) it
> gives me this error. I'm running eclipse 2.1.
>
> Is there any other way to launch web browsers from Eclipse with a given
> URL? Am I missing an important step somewhere???
>
> Thanks.
>
Previous Topic:TitleAreaDialog bug?
Next Topic:stand-alone jface PreferenceDialog
Goto Forum:
  


Current Time: Wed Jun 18 15:47:17 EDT 2025

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

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

Back to the top