|AddFeature in Palette [message #851968]
||Sat, 21 April 2012 10:20
| Harshad RJ
Registered: April 2012
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?
Powered by FUDForum
. Page generated in 0.04154 seconds