Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsExtending/Specializing
https://www.eclipse.org/forums/index.php/mv/msg/163299/516734/#msg_516734
I would like to have several palette tools that create this same kind of Node element, but have them configured differently (including creation of an implementer of "Activity") depending on which palette tool was used to create it. I would like to contribute these palette tools.
I have tried going through the steps in the tutorials on Extensible Type Registry and Configuring and Extending the Diagram Palette. I am using a Specialized Type (of my Node).
However, my elements could not be added to the diagram. After some frustration, I finally found that the generated diagram code does not allow elements not generated to be added to the diagram. One thing I found was that the generated SemanticEditPolicy of the model representing the diagram expects particular element types when building the CreateCommand.
What all (and how) do I need to modify to allow the use of a Specialized Type in the generated code? Am I trying to solve my problem with the wrong method?
It appears that all the extending examples use Logic which does not appear to be generated. Is that true?
]]>Jesse Steinfort2010-02-24T22:41:35-00:00Re: Extending/Specializing
https://www.eclipse.org/forums/index.php/mv/msg/163299/516828/#msg_516828
+1
I have The same problem as you,
I have tried to generate Classes with reflection API,
but I feel like I will implement GMF from the beginning ]]>Zied2010-02-25T10:02:24-00:00Re: Extending/Specializing
https://www.eclipse.org/forums/index.php/mv/msg/163299/516935/#msg_516935
Jesse Steinfort2010-02-25T14:39:11-00:00