Home » Eclipse Projects » Eclipse Platform » Redundant cyclic plugin dependencies
Redundant cyclic plugin dependencies [message #229503] |
Thu, 15 April 2004 15:09  |
Eclipse User |
|
|
|
Originally posted by: locutux.hotmail.com
Hi everyone!!
I just have this conception problem:
I have a couple of plugins: CustomerManager, OrderManager and let's say
ProductManager. I search for a customer, and it displays a list of its
orders. Then i click on one of the orders of that customer, and it
displays the order with its products and some other information. If i
click on product, it then displays another editor with the info about the
product, which also contains a list of the orders that where placed for
this product.
Everybody following up until now? good :)
Now, the hard part, how can i make this work. The only way i found it to
work, is to put each and every one of the editors, views and RemoteClients
(to obtain the relevant Customer, Order and Product data) in the *same*
plugin. But i want separates plugin that will... well, plug... in each
other...
1) First solution: I tought of a MasterPlugin, to hoard everything, but
there is still the problem of the depending (slave) plugins calling the
Master and saying "Hey! I want a customer with this number, search it and
display it!". But then, how the Master can display an editor that is
inside the CustomerPlugin. You see? redundancy!!
picture of my mind at the moment:
+ Master plugin
|
+-- Customer plugin
|
+-- Order plugin
|
\-- Product plugin
2) Second solution: Fragments. Or other plugins? Extension points?
Is there a way to access resources (Editor, view, etc) from a *slave*
pluging when you are the *master*? and what about vice-versa? Is there an
easier way to do this or to save time, do I just start bashing my heads on
the table corner?
Thanks alot for your precious time,
Have a nice day,
Locutux
|
|
|
Re: Redundant cyclic plugin dependencies [message #239394 is a reply to message #229503] |
Thu, 06 May 2004 17:40  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
I swear this same question (customer-order-product) has been asked
before... The rule of thumb for when to create separate plugins is: Does
it ever make sense for each of those components to be packaged and
shipped without the others? I.e., does it ever make senese for an
application to have OrderManager and CustomerManager and not
ProductManager? If they always belong together, then they should be in
the same plugin. If it makes sense for them to live independenty, then
they should be divided. If they are divided, the main technique for
talking across that barrier is extension points. Extension points allow
you to load classes in plugins you don't know about. For example, the
Workbench does not know anything about customers, but it has a "views"
extension point that lets you install a customer view into the
workbench. They are many extension point examples in the platform that
show a number of techniques for this kind of interaction.
--
Locutux wrote:
> Hi everyone!!
>
> I just have this conception problem:
>
> I have a couple of plugins: CustomerManager, OrderManager and let's say
> ProductManager. I search for a customer, and it displays a list of its
> orders. Then i click on one of the orders of that customer, and it
> displays the order with its products and some other information. If i
> click on product, it then displays another editor with the info about the
> product, which also contains a list of the orders that where placed for
> this product.
>
> Everybody following up until now? good :)
>
> Now, the hard part, how can i make this work. The only way i found it to
> work, is to put each and every one of the editors, views and RemoteClients
> (to obtain the relevant Customer, Order and Product data) in the *same*
> plugin. But i want separates plugin that will... well, plug... in each
> other...
>
> 1) First solution: I tought of a MasterPlugin, to hoard everything, but
> there is still the problem of the depending (slave) plugins calling the
> Master and saying "Hey! I want a customer with this number, search it and
> display it!". But then, how the Master can display an editor that is
> inside the CustomerPlugin. You see? redundancy!!
>
> picture of my mind at the moment:
>
> + Master plugin
> |
> +-- Customer plugin
> |
> +-- Order plugin
> |
> \-- Product plugin
>
>
> 2) Second solution: Fragments. Or other plugins? Extension points?
>
> Is there a way to access resources (Editor, view, etc) from a *slave*
> pluging when you are the *master*? and what about vice-versa? Is there an
> easier way to do this or to save time, do I just start bashing my heads on
> the table corner?
>
> Thanks alot for your precious time,
> Have a nice day,
>
> Locutux
>
|
|
|
Goto Forum:
Current Time: Wed Sep 17 05:03:58 EDT 2025
Powered by FUDForum. Page generated in 0.03146 seconds
|