| Summary: | [Generative Tools] A pop-up action would be helpful to automate the creation of GenLink CustomBehavior for StereotypeLabelDisplay | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Yann Tanguy <yann.tanguy> | ||||||||
| Component: | Core | Assignee: | Yann Tanguy <yann.tanguy> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | Keywords: | plan | ||||||||
| Version: | 0.7.0 | ||||||||||
| Target Milestone: | M2 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Yann Tanguy
A pop-up menu has been added containing tools (Pop-up actions) for GMFGen modeling. Currently a single action has been added in order to added automatically the CustomBehavior required by AppliedStereotype display mechanism. Created attachment 140261 [details]
mylyn/context/zip
TODO: Check if an automated creation of the AppliedStereotype GenLinkLabel at the same time makes sense. The following action has been enhanced: - now creates the required GenLinkLabel (for stereotype property display) - now creates the CustomParser used for stereotype display (only in case it does not exists) An additional action automates the VisualID setting, searching for an unused value in the model. Created attachment 140406 [details]
mylyn/context/zip
We should consider moving AppliedStereotypeParser from Class diagram to Common plugin, as it will probably be used by other diagrams as well... The class used by CustomParser has moved (see bug #281959) AddGenLinkStereotypeDisplayBehavior modified Committed in r363 EditPart class name now generated XXXAppliedStereotypeEditPart instead of AppliedStereotypeXXXEditPart Item Semantic Edit Policy Class Name now generated XXXAppliedStereotypeItemSemanticEditPolicy instead of XXXItemSemanticEditPolicy (r365) Created attachment 140498 [details]
mylyn/context/zip
AddGenLinkStereotypeDisplayBehavior assumes the concerned link is a NameElement (MetaFeature is NamedElement::name), another meta feature should be selected by hand if this is not the case (ex: Generalization). AddGenLinkStereotypeDisplayBehavior action corrected : -> org.eclipse.papyrus.diagram.common.parser.custom.AppliedStereotypeParser has been moved to org.eclipse.papyrus.diagram.common.parser.stereotype.AppliedStereotypeParser Done. |