Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321305 - [Notation] Notation::Styles should be used instead of Ecore::eAnnotation
Summary: [Notation] Notation::Styles should be used instead of Ecore::eAnnotation
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.1.0   Edit
Assignee: Project Inbox CLA
QA Contact: Camille Letavernier CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-30 05:09 EDT by Yann Tanguy CLA
Modified: 2017-09-08 09:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yann Tanguy CLA 2010-07-30 05:09:12 EDT
Various graphical properties are stored directly in diagram (notation) using information directly store in eAnnotations. Notation provides a mean to add graphical information using "Styles". This could be a better candidate than eAnnotation to store graphical information like:
- stereotype appearance
- qualified name appearance
- shadow
- icon visibility
- ...

Some examples are given below.

          <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_5WiKopuvEd-IjKjr9t5AXg" source="ShadowFigure">
            <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_5WiKo5uvEd-IjKjr9t5AXg" key="ShadowFigure_Value" value="false"/>
          </eAnnotations>
          <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_5WiKpJuvEd-IjKjr9t5AXg" source="displayNameLabelIcon">
            <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_5WiKpZuvEd-IjKjr9t5AXg" key="displayNameLabelIcon_value" value="false"/>
          </eAnnotations>
          <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_5WiKppuvEd-IjKjr9t5AXg" source="QualifiedName">
            <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_5WiKp5uvEd-IjKjr9t5AXg" key="QualifiedNameDepth" value="1000"/>
          </eAnnotations>
Comment 1 Camille Letavernier CLA 2014-07-22 10:10:25 EDT
Starting with 1.0.0/Luna, Papyrus provides an automatic diagram migration framework. So, this can now be implemented without risk.

(At least) the following EAnnotations should be converted to NamedStyles:

- elementIcon
- shadow
- qualifiedNameDepth

Most code from infra.emf.appearance and uml.appearance could then be removed, including the AppearanceStyleProvider extension point (As it was essentially implemented as a bridge for the CSS component). The CSS natively support the Notation::NamedStyle, so most code in these plug-ins would become useless.