Modular diagrams [message #60410] |
Fri, 06 October 2006 15:12  |
Eclipse User |
|
|
|
Originally posted by: liam.morley.baesystems.com
I'm trying to make an extensible diagram where plugins can add their own
tools to a diagram. I've been looking at the Logic and Geoshapes example
plugins, and it seems that there is some degree of plugability, but it's
centralized- in order for a Logic diagram to contain Geoshapes tools, the
Logic diagram needs to know about the Geoshapes plugin. I'm working with a
more decentralized model, where tools can be added to the diagram down the
line, and they need to get picked up at runtime.
Does this support for GMF exist at the moment? If so, what extension points
should I be looking at? If not, is this kind of functionality in the works
at all? Any kind of pointers on how to proceed would be extremely welcome;
I'm still in the process of figuring out how much I can leverage inside of
GMF, and how much I need to write myself, so if there's any existing code
that I can reuse, I'd be all for it. Thanks!
Liam Morley
|
|
|
Re: Modular diagrams [message #60623 is a reply to message #60410] |
Tue, 10 October 2006 09:05  |
Eclipse User |
|
|
|
Liam,
The GMF Services were built exactly for this purpose. All the GMF
Services work this way. For example, you could easily create a plugin
to extend/modify the Logic Diagram behavior by:
- adding a tool on its palette (Palette Service)
- changing the behavior of shape/connection (EditPolicy Service)
- modifying the "arrange all" behavior (Layout Service)
- and the list goes on to include all our GMF Services.
All you usually need to know is the type of diagram, editpart, or
element that you are targeting.
The geoshape palette drawer is not contributed to all GMF editors by
default so the Logic Diagram adds the geoshapes drawer to its palette.
Regards,
Cherie
Liam Morley wrote:
> I'm trying to make an extensible diagram where plugins can add their own
> tools to a diagram. I've been looking at the Logic and Geoshapes example
> plugins, and it seems that there is some degree of plugability, but it's
> centralized- in order for a Logic diagram to contain Geoshapes tools, the
> Logic diagram needs to know about the Geoshapes plugin. I'm working with a
> more decentralized model, where tools can be added to the diagram down the
> line, and they need to get picked up at runtime.
>
> Does this support for GMF exist at the moment? If so, what extension points
> should I be looking at? If not, is this kind of functionality in the works
> at all? Any kind of pointers on how to proceed would be extremely welcome;
> I'm still in the process of figuring out how much I can leverage inside of
> GMF, and how much I need to write myself, so if there's any existing code
> that I can reuse, I'd be all for it. Thanks!
>
> Liam Morley
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08410 seconds