Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Add RCP Help
Add RCP Help [message #475556] Wed, 29 April 2009 16:59 Go to next message
Mouses is currently offline MousesFriend
Messages: 4
Registered: July 2009
Junior Member
Hello,
I tried to add help to "Test" application while learning RCP Eclipse, but
without success.
I included

org.eclipse.equinox.http.jetty
org.eclipse.help.appserver
org.eclipse.help.base
org.eclipse.help.ui
org.eclipse.help.webapp
org.eclipse.ui.forms

into target platform.

Then I added following code.
//-------------------------------------------------
public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
private IWorkbenchAction iHelpContentsAction;
....
....
protected void makeActions(IWorkbenchWindow window) {
iHelpContentsAction = ActionFactory.HELP_CONTENTS.create(window);
register(iHelpContentsAction);
}
....
....
protected void fillMenuBar(IMenuManager menuBar) {
helpMenu.add(iHelpContentsAction);
.....
//-------------------------------------------------

Menu "Help Contents" is showing correctly in menu bar but when I click on
it nothing happens.
I am runnig "Test" as application so there shouldn't be problem with
missing plugins.
I am sure this is dumb question but I've searched groups with realizing
that many problems can be caused by missing register(IAction) or exporting
product without help system. This is not my case I think.

Thank you for your tips.
M.

P.S. I know I can use commands instead of fillMenuBar but first I want to
see Help dialog :).
Re: Add RCP Help [message #475557 is a reply to message #475556] Wed, 29 April 2009 22:31 Go to previous messageGo to next message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Take a look at
http://www.eclipse.org/articles/article.php?file=Article-Add ingHelpToRCP/index.html

You may still be missing some plug-ins.

Mouses wrote:
> Hello,
> I tried to add help to "Test" application while learning RCP Eclipse,
> but without success.
> I included
> org.eclipse.equinox.http.jetty
> org.eclipse.help.appserver
> org.eclipse.help.base
> org.eclipse.help.ui
> org.eclipse.help.webapp
> org.eclipse.ui.forms
>
> into target platform.
> Then I added following code.
> //-------------------------------------------------
> public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
> private IWorkbenchAction iHelpContentsAction;
> ...
> ...
> protected void makeActions(IWorkbenchWindow window) {
> iHelpContentsAction = ActionFactory.HELP_CONTENTS.create(window);
> register(iHelpContentsAction);
> }
> ...
> ...
> protected void fillMenuBar(IMenuManager menuBar) {
> helpMenu.add(iHelpContentsAction);
> ....
> //-------------------------------------------------
>
> Menu "Help Contents" is showing correctly in menu bar but when I click
> on it nothing happens.
> I am runnig "Test" as application so there shouldn't be problem with
> missing plugins. I am sure this is dumb question but I've searched
> groups with realizing that many problems can be caused by missing
> register(IAction) or exporting product without help system. This is not
> my case I think.
> Thank you for your tips.
> M.
>
> P.S. I know I can use commands instead of fillMenuBar but first I want
> to see Help dialog :).
>
>
Re: Add RCP Help [message #475558 is a reply to message #475557] Thu, 30 April 2009 12:18 Go to previous message
Mouses is currently offline MousesFriend
Messages: 4
Registered: July 2009
Junior Member
Thank you,
you were absolutely right about plugins. There were more than few missing
plugins in my target platform setting. I had badly separated IDE and RCP
platform. Help System is running now.
Re: Add RCP Help [message #623344 is a reply to message #475556] Wed, 29 April 2009 22:31 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Take a look at
http://www.eclipse.org/articles/article.php?file=Article-Add ingHelpToRCP/index.html

You may still be missing some plug-ins.

Mouses wrote:
> Hello,
> I tried to add help to "Test" application while learning RCP Eclipse,
> but without success.
> I included
> org.eclipse.equinox.http.jetty
> org.eclipse.help.appserver
> org.eclipse.help.base
> org.eclipse.help.ui
> org.eclipse.help.webapp
> org.eclipse.ui.forms
>
> into target platform.
> Then I added following code.
> //-------------------------------------------------
> public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
> private IWorkbenchAction iHelpContentsAction;
> ...
> ...
> protected void makeActions(IWorkbenchWindow window) {
> iHelpContentsAction = ActionFactory.HELP_CONTENTS.create(window);
> register(iHelpContentsAction);
> }
> ...
> ...
> protected void fillMenuBar(IMenuManager menuBar) {
> helpMenu.add(iHelpContentsAction);
> ....
> //-------------------------------------------------
>
> Menu "Help Contents" is showing correctly in menu bar but when I click
> on it nothing happens.
> I am runnig "Test" as application so there shouldn't be problem with
> missing plugins. I am sure this is dumb question but I've searched
> groups with realizing that many problems can be caused by missing
> register(IAction) or exporting product without help system. This is not
> my case I think.
> Thank you for your tips.
> M.
>
> P.S. I know I can use commands instead of fillMenuBar but first I want
> to see Help dialog :).
>
>
Re: Add RCP Help [message #623345 is a reply to message #475557] Thu, 30 April 2009 12:18 Go to previous message
Mouses is currently offline MousesFriend
Messages: 4
Registered: July 2009
Junior Member
Thank you,
you were absolutely right about plugins. There were more than few missing
plugins in my target platform setting. I had badly separated IDE and RCP
platform. Help System is running now.
Previous Topic:contribution welcome framework
Next Topic:Re: Is there any way filter some primary help tocs?
Goto Forum:
  


Current Time: Fri Apr 19 19:24:24 GMT 2024

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

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

Back to the top