Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » AddFeature in Palette (How to support AddFeature in Palette?)
AddFeature in Palette [message #851968] Sat, 21 April 2012 10:20 Go to previous message
Harshad RJ is currently offline Harshad RJ
Messages: 5
Registered: April 2012
Junior Member
Hi,

I am new to Graphiti and the entire Eclipse Plugin development system. Over the last week I have managed to follow tutorials and create a simple Graphiti Editor using non EMF domain model.

I have lots of questions in my mind, one of them being:

Is there a way to create a palette entry that only adds pictogram elements for existing model objects?

My use-case is that model objects will be created programmatically; the user should not be allowed to create them. The user can however add them to the diagram and change some attributes.

In the GFPaletteRoot class, I found that the PaletteEntries are added only if they are an instance of ICreationToolEntry, IStackToolEntry or IPaletteSeparatorEntry. So my hunch is that adding existing objects is not supported currently.

Assuming that is true:

* Can I (mis) use a create feature to return existing model objects (without actually creating a new object)?
* Is there a better approach to what I am trying to do?

thanks,
Harshad
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:How to keep active the model outline
Next Topic:Moving shapes and bendpoints
Goto Forum:
  


Current Time: Tue May 28 14:36:57 EDT 2013

Powered by FUDForum. Page generated in 0.01620 seconds