Community
Participate
Working Groups
For now if you want to handle element customization, you must inherit from high level classes that manage all the customization features: NodeNamedElementFigure manages LabelIcon, Stereotypes, QualifiedName, Gradient, etc. This implementation is not flexible enough for all the diagram's figures. It will be too restrictive when complex figures will be implemented. We must improve this management. A better solution is to use policies like it's already done for stereotypes on edges. Policies will enable to set up customization we just want to add. You can add your proposals if you think there is a better solution.
I will work to add only editpolicies. - editPolicy to display stereotype in a label inside of a node (example inside a class) - editPolicy to display stereotype in label attached to a link (already exist, done by Remi) - editPolicy to display stereotype in label attached to a border node (example label for a port) Then I will look for the same mechanism for qualified name.
Created attachment 153087 [details] mylyn/context/zip impacted classes
I have added edit policy to manage stereotype in a label inside of a node and rename editPolicy to display stereotype in label attached to a link. Diagrams has not been regenerated. It will be done later when I will add editPolicy to display stereotype in label attached to a border node So edit policy in usecase and class diagram have been changed in their extends definition
(In reply to comment #3) > I have added edit policy to manage stereotype in a label inside of a node and > rename editPolicy to display stereotype in label attached to a link. > > Diagrams has not been regenerated. It will be done later when I will add > editPolicy to display stereotype in label attached to a border node > > So edit policy in usecase and class diagram have been changed in their extends > definition Patrick I noticed you made changes requiring an update of the gmfgen model (in composite). For any coming changes you need on the composite gmfgen model, I would prefer that you discuss the point with me first in order to decide whether you or I do the changes. The reason is that I have some enhancement in progress on the same model, and due to the difficulty to merge this file I'd prefer avoiding concurrent commit on this for the moment.
Two edit policies have been added: AppliedStereotypeExternalNodeEditPolicy: display applied stereotype and properties of applied stereotype on an external node: example label around a node. AppliedStereotypeIconlDisplayEditPolicy: display only icon of applied stereotypes on a node. There is no impact in diagram because this edit policy are not used. Nevertheless AppliedStereotypeExternalNodeEditPolicy will be used to display applied stereotyped for Actor in use case diagram or port in composite diagram.
I have created a editpolicy that has in charge to display the qualified name : QualifiedNameDisplayEditPolicy. So in order to have this behavior. it has to be added in the gen model. I will add set of tool ( click right in node, in order to add automatically previous editpolicy).
Created attachment 153441 [details] mylyn/context/zip impacted classes
I have added sub menu to create directly nodes or edit policy in order to obtain good behavior. I have also regenerated class diagram with all these policies.