Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] [Parser Provider] Not taking the Diagram into account

Hi everyone,

 

As Patrick and I working on the Sequence diagram, we found a side effect of the UMLParserProvider.

 

For the time being, 1 parser provider is created for each Diagram.

Those providers using the Element Type Visual ID to match if this should provide or not the Parser.

 

But some elements can be found in more than one diagram with the same visual ID ( in example Duration Observation is available in both Composite and Sequence diagrams )

 

Then when you are in the Sequence, creating Duration Observation, it happens that we match the Composite Parser.

This is even worse because it exists a CustomParserProvider in the composite diagram prior to all the other providers due to higher priority.

 

Then your Duration Observation in the Sequence diagram parses the label as defined in the Composite parser provider and not as defined in the Sequence parser provider.

 

 

There are several solutions to this but none is simple :

 

1.  Solution 1 : Have the same Parser for all the DurationObservation

Issue 1 : Duration Observation Parser is a child of MessageFormatParser

that is generated for each diagram. And cannot be common

 

2.  Solution 2 : Modify the Element Type ID in order to identify if an

element type belongs to a specific diagram to avoid to match a parser

from another diagram.

Issue2: No idea of the side effects , probably a lots of duplication code

 

 

 

Do you see any other solutions ?

Does someone has a great idea to fix this problem ?

 

 

Best regards

 

Céline

 

 

BEGIN:VCARD
VERSION:2.1
X-MS-SIGNATURE:YES
N;LANGUAGE=fr;CHARSET=Windows-1252:Céline;JANSSENS
FN;CHARSET=Windows-1252:JANSSENS Céline
ORG:ALL4TEC
TITLE;CHARSET=Windows-1252:Ingénieur d'Etude  Papyrus Support Manager
TEL;WORK;VOICE:+33 2 44 47 23 23
ADR;WORK;PREF;ENCODING=QUOTED-PRINTABLE:;;Parc CERES Bat. L=0D=0A=
2 rue Ferdinand Buisson;CHANGE;;53810;France
LABEL;WORK;PREF;ENCODING=QUOTED-PRINTABLE:Parc CERES Bat. L=0D=0A=
2 rue Ferdinand Buisson=0D=0A=
53810 CHANGE
X-MS-OL-DEFAULT-POSTAL-ADDRESS:2
EMAIL;PREF;INTERNET:celine.janssens@xxxxxxxxxxx
X-MS-OL-DESIGN;CHARSET=utf-8:<card xmlns="http://schemas.microsoft.com/office/outlook/12/electronicbusinesscards"; ver="1.0" layout="left" bgcolor="ffffff"><img xmlns="" align="fit" area="16" use="cardpicture"/><fld xmlns="" prop="name" align="left" dir="ltr" style="b" color="000000" size="10"/><fld xmlns="" prop="org" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="title" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="telwork" align="left" dir="ltr" color="d48d2a" size="8"><label align="right" color="626262">Bureau</label></fld><fld xmlns="" prop="email" align="left" dir="ltr" color="d48d2a" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="addrwork" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/></card>
REV:20160907T143407Z
END:VCARD

Back to the top