Skip to main content



      Home
Home » Eclipse Projects » Platform - User Assistance (UA) » RCP Help App wants to exit workbench when browser closes
RCP Help App wants to exit workbench when browser closes [message #469439] Fri, 15 June 2007 10:01 Go to next message
Eclipse UserFriend
Hi there,
Wondering if someone here has run into the problem that I'm facing...
We've got an RCP app whose sole purpose is delivery of 'Online Help' via a
CDROM. The entire app is composed of a single plugin (the RCP app) which
depends on all of our existing user.doc plugins.

The RCP app starts up with essentially an empty workbench (we hide the
window, so it appears headless) and simply opens the system help which in
turn loads our doc plugins. ie -

//start up the help system to display the help content
IWorkbenchHelpSystem helpSystem;
helpSystem = PlatformUI.getWorkbench().getHelpSystem();
helpSystem.displayHelp();

The problem is that, once the help window is opened, and the user
subsequently closes it, the workbench (javaw) process is of course left
running.
Since this is product is delivered pretty much exclusively to windows
users, thus we can be relatively certain that it's going to use the
embedded swt browser, I'm wondering if there's a way to access the
embedded swt browser programmatically to add a window close listener which
will close the workbench as well? The desired result is that I want the
action of closing the help browser window to make the help system exit
cleanly.

Anybody got any suggestions? If there's a better way to accomplish what
I'm talking about, feel free to recommend an alternate method - I'm still
getting the feel for eclipse, so I'm sure there's LOTS of places where
I've yet to scratch the surface ;)

Thanks,
Todd
Re: RCP Help App wants to exit workbench when browser closes [message #469445 is a reply to message #469439] Fri, 15 June 2007 11:53 Go to previous messageGo to next message
Eclipse UserFriend
Todd,
i don't know how much you have customized your RCP, but help system can
be run completely standalone.
See here for more details:
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_setup_standalone.htm

I haven't tried this, but for my understanding, you only need to pick-up
correct bundles, prepare configuration/config.ini, put eclipse.exe
in root folder and that's it.

Todd wrote:
> Hi there, Wondering if someone here has run into the problem that I'm
> facing...
> We've got an RCP app whose sole purpose is delivery of 'Online Help'
> via a CDROM. The entire app is composed of a single plugin (the RCP
> app) which depends on all of our existing user.doc plugins.
> The RCP app starts up with essentially an empty workbench (we hide the
> window, so it appears headless) and simply opens the system help which
> in turn loads our doc plugins. ie -
> //start up the help system to display the help content
> IWorkbenchHelpSystem helpSystem;
> helpSystem = PlatformUI.getWorkbench().getHelpSystem();
> helpSystem.displayHelp();
>
> The problem is that, once the help window is opened, and the user
> subsequently closes it, the workbench (javaw) process is of course
> left running.
> Since this is product is delivered pretty much exclusively to windows
> users, thus we can be relatively certain that it's going to use the
> embedded swt browser, I'm wondering if there's a way to access the
> embedded swt browser programmatically to add a window close listener
> which will close the workbench as well? The desired result is that I
> want the action of closing the help browser window to make the help
> system exit cleanly.
>
> Anybody got any suggestions? If there's a better way to accomplish
> what I'm talking about, feel free to recommend an alternate method -
> I'm still getting the feel for eclipse, so I'm sure there's LOTS of
> places where I've yet to scratch the surface ;)
>
> Thanks,
> Todd
>
Re: RCP Help App wants to exit workbench when browser closes [message #469448 is a reply to message #469445] Mon, 18 June 2007 13:34 Go to previous message
Eclipse UserFriend
I believe the same problem exists when running the help system in
standalone mode, though it's still probably worth considering this, Todd.

Unfortunately there is currently no easy workaround to the problem except
modifying the help system code to terminate the process when the help
system's display is closed.

Jacek Pospychala wrote:

> Todd,
> i don't know how much you have customized your RCP, but help system can
> be run completely standalone.
> See here for more details:
>
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_setup_standalone.htm

> I haven't tried this, but for my understanding, you only need to pick-up
> correct bundles, prepare configuration/config.ini, put eclipse.exe
> in root folder and that's it.
Re: RCP Help App wants to exit workbench when browser closes [message #571675 is a reply to message #469439] Fri, 15 June 2007 11:53 Go to previous message
Eclipse UserFriend
Todd,
i don't know how much you have customized your RCP, but help system can
be run completely standalone.
See here for more details:
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_setup_standalone.htm

I haven't tried this, but for my understanding, you only need to pick-up
correct bundles, prepare configuration/config.ini, put eclipse.exe
in root folder and that's it.

Todd wrote:
> Hi there, Wondering if someone here has run into the problem that I'm
> facing...
> We've got an RCP app whose sole purpose is delivery of 'Online Help'
> via a CDROM. The entire app is composed of a single plugin (the RCP
> app) which depends on all of our existing user.doc plugins.
> The RCP app starts up with essentially an empty workbench (we hide the
> window, so it appears headless) and simply opens the system help which
> in turn loads our doc plugins. ie -
> //start up the help system to display the help content
> IWorkbenchHelpSystem helpSystem;
> helpSystem = PlatformUI.getWorkbench().getHelpSystem();
> helpSystem.displayHelp();
>
> The problem is that, once the help window is opened, and the user
> subsequently closes it, the workbench (javaw) process is of course
> left running.
> Since this is product is delivered pretty much exclusively to windows
> users, thus we can be relatively certain that it's going to use the
> embedded swt browser, I'm wondering if there's a way to access the
> embedded swt browser programmatically to add a window close listener
> which will close the workbench as well? The desired result is that I
> want the action of closing the help browser window to make the help
> system exit cleanly.
>
> Anybody got any suggestions? If there's a better way to accomplish
> what I'm talking about, feel free to recommend an alternate method -
> I'm still getting the feel for eclipse, so I'm sure there's LOTS of
> places where I've yet to scratch the surface ;)
>
> Thanks,
> Todd
>
Re: RCP Help App wants to exit workbench when browser closes [message #571706 is a reply to message #469445] Mon, 18 June 2007 13:34 Go to previous message
Eclipse UserFriend
I believe the same problem exists when running the help system in
standalone mode, though it's still probably worth considering this, Todd.

Unfortunately there is currently no easy workaround to the problem except
modifying the help system code to terminate the process when the help
system's display is closed.

Jacek Pospychala wrote:

> Todd,
> i don't know how much you have customized your RCP, but help system can
> be run completely standalone.
> See here for more details:
>
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_setup_standalone.htm

> I haven't tried this, but for my understanding, you only need to pick-up
> correct bundles, prepare configuration/config.ini, put eclipse.exe
> in root folder and that's it.
Previous Topic:Steps to get this eclipse.platform.ua newsgroup listed on the "All newsgroups" page at Ecl
Next Topic:Invoking ant task to build index outside eclipse?
Goto Forum:
  


Current Time: Fri May 23 02:01:29 EDT 2025

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

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

Back to the top