Hi,
First the mailing list is in english so I answer in English.
About how to integrate multi line text in requirement import ?
It is a feature which is not currently supported, actually it is a limitation
of the tool.
Nevertheless you can use the same mechanism I explained in a previous mail to
Mr Gava, I copy my answer bellow:
“No, It is a current limitation, doc2model (back end technology for importing
data currently only works using paragraphs visitor)
anyway to manage text you can use extension point from the technology to
intercept event creation, you can create a plugin subscribing to the extension
point using :
<extension
point="org.topcased.doc2model.parser.checker">
<checker
instance="MyChecker">
</checker>
</extension>
And referencing a class able to match your Text Regex, be careful the checker
will be called for each import so you need to work on the condition.
To retrieve the latest object created by the import tool and to create new Text
elements :
EObject eobject = process.getLatestCreatedElement();
if (eobject instanceof ttm.Requirement)
{
ttm.Requirement req = (ttm.Requirement) eobject;
Text createText = TtmFactory.eINSTANCE.createText();
createText.setValue(buffer.toString());
req.getTexts().add(createText);
}”
Kind regards
Tristan FAURE
-----Message d'origine-----
De : [email protected]
[mailto:[email protected]] De la part de Topcased user
list where issues are discussed
Envoyé : mardi 19 avril 2011 09:30
À : [email protected]
Objet : Re: [Topcased-users] Welcome to the "Topcased-users" mailing list
Bonjour à tous, je suis nouveau sur la liste.
J'ai suivi le tutoriel d'import d'exigence à partir d'un document ODT.
Malgrès tout, j'aurais besoin d'assistance.
Voici le format des exigences dans mon document ODT:
Exig. XXX...
{
Texte de l'exigence...
en plusieurs lignees.
}
Exig. Sources: YYY...
Je ne trouve pas le wizard d'import très logique mais voici ce que j'ai fait:
J'ai ajouté les 3 regexp suivantes:
Requirement identification: ^Exig.*
^Exig\.\sXXX.*
Exig\.\sSources:\s.*
Avec ça, j'arrive à extraire:
- un "ID" de type "Text",
- une référence "ref" de type "Reference".
Je souhaiterais récupérer aussi le texte de l'exigence mais je ne vois
pas comment.
Une idée ?
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
________________________________
Ce message et les pièces jointes sont confidentiels et réservés à l'usage
exclusif de ses destinataires. Il peut également être protégé par le secret
professionnel. Si vous recevez ce message par erreur, merci d'en avertir
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts
soient faits pour maintenir cette transmission exempte de tout virus,
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne
saurait être recherchée pour tout dommage résultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for
the addressee; it may also be privileged. If you receive this e-mail in error,
please notify the sender immediately and destroy it. As its integrity cannot be
secured on the Internet, the Atos Origin group liability cannot be triggered
for the message content. Although the sender endeavours to maintain a computer
virus-free network, the sender does not warrant that this transmission is
virus-free and will not be liable for any damages resulting from any virus
transmitted.
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users