Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 246358 - [Profiles] Show image of stereotype on the extended element
Summary: [Profiles] Show image of stereotype on the extended element
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Samples (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Tatiana Fesenko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 199739
  Show dependency tree
 
Reported: 2008-09-05 08:48 EDT by Tatiana Fesenko CLA
Modified: 2012-12-11 15:11 EST (History)
2 users (show)

See Also:


Attachments
Initial patch (363.02 KB, patch)
2009-02-04 14:27 EST, Tatiana Fesenko CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tatiana Fesenko CLA 2008-09-05 08:48:51 EDT
Stereotype element has Image property. If element applies the stereotype with omage, display the image on the element viewmap.

UML 2.1 spec, 8.3.8, says:
When a stereotype includes the definition of an icon, this icon can be graphically attached to the model elements extended
by the stereotype. Every model element that has a graphical presentation can have an attached icon. When model elements
are graphically expressed as:
• Boxes (see Figure 18.14 on page 670): the box can be replaced by the icon, and the name of the model element appears
below the icon. This presentation option can be used only when a model element is extended by one single stereotype
and when properties of the model element (i.e., attributes, operations of a class) are not presented. As another option,
the icon can be presented in a reduced shape, inside and on top of the box representing the model element. When
several stereotypes are applied, several icons can be presented within the box.
• Links: the icon can be placed close to the link.
• Textual notation: the icon can be presented to the left of the textual notation.
Several icons can be attached to a stereotype. The interpretation of the different attached icons in that case is a semantic
variation point. Some tools may use different images for the icon replacing the box, for the reduced icon inside the box,
for icons within explorers, etc. Depending on the image format, other tools may choose to display one single icon into
different sizes
Comment 1 Tatiana Fesenko CLA 2009-02-04 14:27:28 EST
Created attachment 124718 [details]
Initial patch
Comment 2 Tatiana Fesenko CLA 2009-02-05 14:11:34 EST
Fixed in all Structure diagram - icons of the stereotypes are displayed for all top-level elements