Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] Development tools for GMFGen

Hi Guys,

 

I have added the following GMFGen development tools in the org.eclipse.papyrus.gmfgenextension plugin:

- Add CustomBehavior for StereotypeLabelDisplay

- Set VisualID with unused value

 

The first one automates the creation of the custom part of GenLink elements from the GMFGen model that are used to deal with stereotype application display. It creates:

-          the custom behavior org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy

-          the GenLinkLabel used for stereotype display

-          the custom parser used by stereotype management.

These elements are only created if they do not already exist in the model. The custom parser refers to the following class AppliedStereotypeParser (from org.eclipse.papyrus.diagram.common.parser.custom).

 

The second tool search an unused VisualID in the model to set the VisualID value of current selection.

 

Both tools basically consists in contextual popup action available on GMFGen model elements (note that AddCustomBehavior… is enabled only when the selection is a (set of) GenLink(s)).

 

Also notice that if the CustomParser already exists and still references org.eclipse.papyrus.diagram.clazz.custom.parsers.AppliedStereotypeParser, it would definitely be better to change it to org.eclipse.papyrus.diagram.common.parser.custom.AppliedStereotypeParser in the GMFGen model first.

 

See Bug #281679.

 

Regards,

 

Yann

 

CEA SACLAY
DRT/LIST/DTSI/SOL/LISE
91191 Gif sur Yvette
FRANCE
email :
yann.tanguy@xxxxxx
Tel :  + 33 1 69 08 87 63

Fax :  + 33 1 69 08 20 82

 


Back to the top