Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem to run RCP application as IDE
Problem to run RCP application as IDE [message #326714] Mon, 31 March 2008 06:07 Go to next message
Eclipse UserFriend
Originally posted by: chethubr.gmail.com

Hello All,
I have created RCP application which has some actions defined in
preStartup() method and postStartup() method and also i am contributing
actions from fillActionBars() method and i am calling this method from the
class which extends WorkbenchAdvisor class everything works fine when i
run it has RCP application.
Problem: but the problem is when i run this application as Eclipse IDE
this class will never been called and all those methods will not going to
be executed.

Please can anyone tellme how to run my application in both RCP and IDE.
Is there any class which i need extend to run as IDE so that i can
contribute my actions.

Thanking you in Advance.

Regards,
Chethan.
Re: Problem to run RCP application as IDE [message #326737 is a reply to message #326714] Mon, 31 March 2008 12:58 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

It doesn't work that way. As an RCP you can take advantage of the
ActionBarAdvisor class to fill in the main menu.

As an eclipse plugin, you can use org.eclipse.ui.actionSets
(IActionDelegate) or org.eclipse.ui.menus (commands+handlers) to
contribute to the main menu. These extensions will also work in your
RCP app (the extensions are available to both RCP and IDE, but the
advisor class is only available to RCP)

Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:org.eclipse.ui.ide and RCP
Next Topic:Periodic workspace save error
Goto Forum:
  


Current Time: Sat Jul 13 20:14:54 GMT 2024

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

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

Back to the top