[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.modeling.gmt.amw] Re: view multiple models at once?
|
Hello,
When you open a weaving model (*.amw), the editor is independent of any
other weaving editors that are already opened, so the functionality you
want is not natively supported. This is a typical behavior editors in
Eclipse: to associate one file extension with an editor, and the editor
opens one file at a time.
However, I can think of two alternatives to obtain the behavior you want. :)
First, you can extend the editor by adding a second weaving panel. But
the editor will be specific to this case.
Second, you can extend the metamodel extension for traceability to weave
three (3) models instead of two (2). You just need to create a new
reference that points to WModelRef elements, and a three-way link that
extends WLink.
The interface of AMW will adapt automatically to any number of woven models.
Then, to support the new traceability extension, you need to change the
ATL2WTracer transformation. Now the trace will be between three models,
not two.
Least, but not last, I guess you don't want to modify the ATL2WTracer
transformation, because you want to add traceability only to
transformations that take one model as input and that produce another
model as output.
In this case, you should create a new transformation that takes the two
traceability weaving models as input and that transforms them into a new
traceability weaving model. The transformation will 'merge' the elements
that have the same xmi:id in a three-way link. The output weaving model
must conform to the traceability extension that supports weaving three
models.
Regards,
Marcos.
Leila wrote:
Hi,
When I use the ATL2WTracer and create the following models:
model1 -> traceability model between model1 and model2
(mmw_traceability.ecore) -> model2,
model2 -> traceability model between model2 and model3
(mmw_traceability.ecore) ->model3.
All related through their xmi:ids. Is there a way to use the modelweaver
viewer to see all these models at once, in such a way that when I select
a link in the traceability model between model1 and model2 (or model2
and model3), all source and target entities (in the other models) are
highlighted? (the same way it happens when I load 2 models and the
traceability between them).
Thanks,
- Leila