[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Adding SpecializationTypes dynamically

hm im sorry, i think someone with a better technical background must help you here.

best regards,
David


Chris Klapdohr wrote:
Hi David,
thanks for your answer.

I have implemented the Interface IHintedType, but I still get the "not-allowed" cursor by trying to add one of my SpecializationTypes.

By debugging I found, that a node that can be added to the canvas unlike my SpecializationTypes gets a Comand "cmd" in the method "Command getCommand(Request request)" which is not null, so the method _disableCanonicalEditPolicyList.addAll(disableCanonicalFor(_request)) is called. In case of adding one of my SpecializaitonTypes the Command cmd is allways null.

Any ideas whats missing here?

Best regard, Chris


David Schmelter schrieb:
Hi Chris,

in the 'eclipse.technology.gmf' archive i found a post which seems to describe exactly your problem, maybe this helps:

http://dev.eclipse.org/newslists/news.eclipse.technology.gmf/msg03951.html


best regards, David


Chris Klapdohr schrieb:
Hi,
I have an editor for a metamodel that consist basically just of the
classes "Node" and "Edge". Now I want to add any number of specialization types for these basic types (based on another model) dynamically (so I cant use the elementTypes extension point).


In my palette I want to have a Creation Tool for any of my specialization types. What I did so far:
- I created new specialization types for my basic element types "Node" and "Edge" and registered them to the ElementTypeRegistry.
- I bound these specialization types to the client context of my editor.
- I created an palette entry for these types.


Now the specialization types are shown on the palette but I cannot add them to the diagram canvas (only the basic ElementTypes of "Node" and "Edge").
Is there a special thing I have to add, so my specialization types can be added to the canvas?



Thank you for helping, Chris Klapdohr