Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » rcp application with multiple plugins(how to organize rcp application with multiple plugins)
rcp application with multiple plugins [message #506176] Wed, 06 January 2010 08:13 Go to next message
Stella Levin is currently offline Stella Levin
Messages: 85
Registered: July 2009
Member
Hi,
I work on rcp application. I have the main plugin, including application and product definitions. I want to add java library and another plugin, that is based on this library implementing additions to the main plugin. What is the appropriate plugin architecture? Should I create java library as a separate plugin also? How to define the another plugin - as feature plugin or as fragment plugin, etc ? Any explanations and examples will be appreciated. Thanks
Re: rcp application with multiple plugins [message #506206 is a reply to message #506176] Wed, 06 January 2010 09:13 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

to add another java library, you do have to put it in a plugin
somewhere. You can then require it (or import its packages) and use it
directly from another plugin.

If you have a main plugin and you want another plugin to contribute
extensions to it, the common eclipse pattern is to use Extension
points/Extensions.

ex: org.eclipse.ui defines org.eclipse.ui.views EP and the IViewPart
class. when it starts up, it reads all Extensions and (based on some
logic) instantiates the contributed implementations of IViewPart through
Extension/IConfigurationElement

org.eclipse.ui.views.log requires org.eclipse.ui, contributes a view to
org.eclipse.ui.views, and implements IViewPart in its contribution.

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/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: rcp application with multiple plugins [message #506427 is a reply to message #506206] Thu, 07 January 2010 09:15 Go to previous messageGo to next message
Stella Levin is currently offline Stella Levin
Messages: 85
Registered: July 2009
Member
I have an additional question:
I want an another plugin to contribute additional editor to the rcp application. If some group of customers don't want this extension - they need to remove it in plugin.xml of the main plugin? Are there other way to regulate what plugins to take for rcp? Thanks
Re: rcp application with multiple plugins [message #506484 is a reply to message #506427] Thu, 07 January 2010 11:40 Go to previous message
Eclipse User
Originally posted by: jccanova.gmail.com

Hi stella,

in matter of fact who keeps information about the contribution is the
extension not the plugin...
if a user dont want an extension just dont have to install it.
to remove a extension-plugin is the same process using the update manager or
enable/disable plugin or remove it phisically.

if im not wrong the concept behind is CBM (component bussiness modelling)
and SAAS, based all in OSGI.

regards,

jose carlos canova

"Stella" <stella_levin2003@yahoo.com> wrote in message
news:hi4q9v$pa1$1@build.eclipse.org...
>I have an additional question: I want an another plugin to contribute
>additional editor to the rcp application. If some group of customers don't
>want this extension - they need to remove it in plugin.xml of the main
>plugin? Are there other way to regulate what plugins to take for rcp?
>Thanks
Previous Topic:Enhancing perspective title by dynamic text
Next Topic:How to do some actions when the rcp exit
Goto Forum:
  


Current Time: Thu Jul 24 21:42:31 EDT 2014

Powered by FUDForum. Page generated in 0.01679 seconds