Attributes sorting in classifiers [message #590852] |
Thu, 06 August 2009 12:42 |
Esteban Dugueperoux Messages: 472 Registered: July 2009 |
Senior Member |
|
|
Hi,
I'm developping a GMF editor, and see two interesting features with
papyrus UML2 editor :
- you can sort by drag'n drop attributes in classifiers
- and you can connect Dependency to/from Property.
I would like to have same features for my diagram.
I compare papyrus code with UML2Tools code (UML2Tools doesn't have
theses features), but don't see differences which make that with papyrus
you can reorder attributes. I see two EditPolicyRoles :
- SORT_FILTER_CONTENT_ROLE and SORT_FILTER_ROLE
also SortFilterContentRequest and ShapeCompartmentDropEditPolicy but
don't know how they are implicated in mechanics. I see also
getDragTracker() in CompartmentEditPart but don't know how to use it.
Then my first question is how do you implement this first feature.
For the last feature (that UML2Tools doesn't implements also), I don't
see differences, in my GMF editor my "Property" Top Node in my gmfmap
model are Node but not Diagram Label like with papyrus and UML2Tools
gmfmap models. Yet with papyrus we can connect a Dependency to/from a
Property which is a Diagram Label (draw2d Label in generated code).
Then my last question is how do you implement this last feature?
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.03234 seconds