eclipse-uml2 / uml2

An EMF-based implementation of the UML 2.x metamodel for the Eclipse platform.
Eclipse Public License 2.0
5 stars 4 forks source link

Add role name in Connector End label for identification #84

Open eclipse-uml2-bot opened 1 week ago

eclipse-uml2-bot commented 1 week ago

| --- | --- | | Bugzilla Link | 519506 | | Status | NEW | | Importance | P3 enhancement | | Reported | Jul 11, 2017 10:05 EDT | | Modified | Dec 19, 2017 08:09 EDT | | Version | 5.3.0 | | Reporter | Benoit Maggi |

Description

Currently it's very difficult to distinct connectorends, all connectorends are displayed like that .

Since ConnectorEnd isn't a named element, the idea would be to display the name of the role (ConnectableElement extends NamedElement) if available.

This is a pretty similar use case as Slot displaying defining feature name

Ps: latest version 5.3.0 isn't available in the version field

eclipse-uml2-bot commented 1 week ago

By Benoit Maggi on Jul 11, 2017 10:05

Created attachment 269314 Small model example

model.uml

eclipse-uml2-bot commented 1 week ago

By Ed Willink on Jul 11, 2017 10:49

Problem seems to be that uml.edit.provider has inadequate genmodel customization and so

ConnectorEnd inherits its label feature as MultiplicityElement::isOrdered, rather than leaving it blank, which might pick something better as it does for Slot, or by specifying ConnectorEnd::role explicitly.

Not sure that isOrdered is a very get subset of the MultiplicityElement possibilities.

Ideally all major classes should be reviewed to ensure a better UML Model Editor rendering. ... but is any change a break to traditional legacy?

Workaround: for use within Papyrus a customized overriding UML provider could be supplied.

eclipse-uml2-bot commented 1 week ago

By Benoit Maggi on Jul 12, 2017 05:17

@Ed: Yes we can override the label in Papyrus but I feel that doing that directly in UML would be better for the community.