Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Modular diagrams
Modular diagrams [message #60410] Fri, 06 October 2006 19:12 Go to next message
Eclipse UserFriend
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 13:05 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
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
>
>
Previous Topic:How to modify the properties page?.. Please help
Next Topic:How to add nodes in runtime
Goto Forum:
  


Current Time: Sun Oct 20 16:29:07 GMT 2024

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

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

Back to the top