|
Re: Papyrus Plugin [message #1620848 is a reply to message #1619245] |
Tue, 17 February 2015 13:28 |
|
Hi, Sami,
The elements of a SysML model are also stored inside the .uml file.
The .di file is not interesting.
But I don't understand what you mean by buttons and adding points in
the model files. Could you be more explicit in explaining what you are
trying to do, that we may better help?
Cheers,
Christian
On 2015-02-16 12:44:20 +0000, Sami MADDOURI said:
> Hi everyone,
> I am trying to develop a propagation algorithm. For now, i made
> progress. When i select an element inside the .uml file, i can see the
> button that i created and that i program it also. My problem is how add
> the same point in .di file. It will more easy to select a SysMl element
> in d. file that in the .uml file.
>
> Thanks in advance,
>
> Sami
|
|
|
|
Re: Papyrus Plugin [message #1622640 is a reply to message #1622381] |
Wed, 18 February 2015 16:41 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi,
Quote:I did not understand the correspondence between a requirement 1 in the uml file and requirement 1 in the di file (which is
CustomRequirementEditPart)
The DI file is empty; the diagrams (Graphics) are stored in the Notation file. Notation elements ("Views") have a reference to the semantic UML Element ("Element"). Papyrus reads the Notation model to create a graphical representation ("EditParts" and "Figures")
So, the "RequirementEditPart" (Or whatever it is called in the implementation) is associated to a notation::Shape (Specific kind of "View"), which itself is associated to a UML::Class (Specific kind of "Element") and stereotyped with SysML::Requirements::Requirement. The Edit Part reads information from the View and the Element to create the Draw2D Figure, which is displayed on the Canvas.
To highlight elements, you may want to have a look at the CSS Component (https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS) which provides convenient means to change the appearance of a diagram element (e.g. color)
HTH,
Camille
Camille Letavernier
|
|
|
Powered by
FUDForum. Page generated in 0.02417 seconds