Bug 513241 - Add icons for abstract UML classes
Summary: Add icons for abstract UML classes
Status: NEW
Alias: None
Product: MDT.UML2
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: UML2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks: 440442
  Show dependency tree
 
Reported: 2017-03-07 08:35 EST by Vincent Lorenzo CLA
Modified: 2017-12-19 08:05 EST (History)
1 user (show)

See Also:


Attachments
Illustration of missing Icon in a Papyrus Dialog (98.91 KB, image/png)
2017-03-07 08:35 EST, Vincent Lorenzo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2017-03-07 08:35:57 EST
Created attachment 267139 [details]
Illustration of missing Icon in a Papyrus Dialog

There is no icon defined for UML abstract Metaclass. 
The Papyrus "Import Metaclass" dialog will be nicer with icon displayed for all UML element.
Comment 1 Kenn Hussey CLA 2017-03-07 12:55:26 EST
Yeah, by default EMF doesn't create icons for abstract classes because they aren't needed in any of the tooling it generates (e.g., the sample editor). In practice, most tools built on UML2 either supplement the generated icons with additional icons and images as needed or otherwise replace them entirely with a different (and more complete) set of icons and images...
Comment 2 Benoit Maggi CLA 2017-03-28 11:52:06 EDT
I think it's a very interesting suggestion.

In fact there are many places in Papyrus where we find this kind of problem.
The default generated models or frameworks in Papyrus will always look by default in UML2 (even for abstract elements) for images.

In many case we can branch on the correct Papyrus image, but it would be nicer to have theme provided by UML2 following the same pattern.

I don't see any issue in taking all of the abstract icon we have in Papyrus and move them in UML2 code.
Comment 3 Kenn Hussey CLA 2017-10-27 09:48:23 EDT
Benoit, if you're willing/able to donate the icons, I can look at adding them as part of the UML2 5.4.0 (for Photon).
Comment 4 Benoit Maggi CLA 2017-10-30 04:49:40 EDT
I will ask to the team, if they are aware of already existing icons (and their locations).

So far I only found Classifier.
org.eclipse.papyrus/plugins/uml/org.eclipse.papyrus.uml.service.types/icons/Classifier.gif


Here is the missing list:

Action
ActivityEdge
ActivityGroup
ActivityNode
Behavior
BehavioralFeature
BehavioredClassifier
CallAction
Classifier
ConnectableElement
ControlNode
DeployedArtifact
DeploymentTarget
DirectedRelationship
Element
EncapsulatedClassifier
Event
ExecutableNode
ExecutionSpecification
Feature
FinalNode
InteractionFragment
InvocationAction
LinkAction
LiteralSpecification
MessageEnd
MessageEvent
MultiplicityElement
NamedElement
Namespace
ObjectNode
Observation
PackageableElement
ParameterableElement
RedefinableElement
Relationship
StructuralFeature
StructuralFeatureAction
StructuredClassifier
TemplateableElement
Type
TypedElement
ValueSpecification
VariableAction
Vertex
WriteLinkAction
WriteStructuralFeatureAction
WriteVariableAction