Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to make independent plugins ?
How to make independent plugins ? [message #436329] Tue, 06 September 2005 05:49 Go to next message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

Is it possible to make a independent plugin that accepts a value to create
a table ? so that if i were to make an RCP application i could just call
the plugin and pass a tablemodel to the plugin and get the plugin to make
the table for me ?


if it is possible to do it can anyone help me out on that ...
thanx in advance,
Re: How to make independent plugins ? [message #436351 is a reply to message #436329] Tue, 06 September 2005 22:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bruce.conlin.ns.sympatico.ca

Not knowing much about your problem domain, how about creating an
extension point schema that requires a fully qualified class name of the
table provider (table model). Then, create a plugin fragment whose host
is your independent plugin. The independent plugin would then check to
see if there are any plugins that extend its extension point. If so, it
creates an instance of the object through the osgi bundle.

Genu George wrote:
>
>
>
> Is it possible to make a independent plugin that accepts a value to
> create a table ? so that if i were to make an RCP application i could
> just call the plugin and pass a tablemodel to the plugin and get the
> plugin to make the table for me ?
>
>
> if it is possible to do it can anyone help me out on that ...
> thanx in advance,
>
Re: How to make independent plugins ? [message #436421 is a reply to message #436351] Thu, 08 September 2005 04:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

hi,
Re: How to make independent plugins ? [message #436422 is a reply to message #436351] Thu, 08 September 2005 04:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

hi,

i am not so familiar with creating my own extention point and schema
declaration..is there any help i can get ?...i would appreciate it if i
could get any examples or site or documents related to this topic....
Re: How to make independent plugins ? [message #436427 is a reply to message #436351] Thu, 08 September 2005 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

hi,

u said in the previous mail to do this --->

The independent plugin would then check to see if there are any plugins
that extend its extension point.

How do i check to see if there are any plugins that extend its extentio
point ?
Re: How to make independent plugins ? [message #436432 is a reply to message #436351] Thu, 08 September 2005 11:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gkurien.icope.com

let me just change my question a little bit..

Is it posible for me to write a RCP product ( which i create using the
eclipse Product Export Wizard ) and allow third party plugins to be
plugged into my RCP Product ? ( Assuming that i have no idea of how the
third party plugin is going to be )

if yes wat are the changes i have to make while writing my RCP Product
..and how will the third party plugin be written to make use of my RCP
Product ?
Re: How to make independent plugins ? [message #436435 is a reply to message #436432] Thu, 08 September 2005 12:33 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
You need to create something called an 'extension point schema'. This defines a set of information that other plugins can provide to a parent plugin upon activation.

Most of the time the extensions also pass in a class name of a well-known interface, like the the Views extension point ( http://help.eclipse.org/help31/topic/org.eclipse.platform.do c.isv/reference/extension-points/org_eclipse_ui_views.html) which 'takes' as an argument the name of a class that implements the IViewPart interface.

There's a mini-howto in the on-line help:

http://help.eclipse.org/help31/topic/org.eclipse.pde.doc.use r/guide/pde_schema.htm

This describes how an extension point (for a parser) can be defined, and then contributed to by another class.

Unfortunately, it doesn't cover how the extension point is used, but there's more information in the on-line article:

http://www.eclipse.org/articles/Article-Plug-in-architecture /plugin_architecture.html
Previous Topic:Class not found exception when loading plugin
Next Topic:Communication between viewers in a perspective
Goto Forum:
  


Current Time: Sat Dec 14 11:21:01 GMT 2024

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

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

Back to the top