Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsProblem loading UML file in Papyrus
https://www.eclipse.org/forums/index.php/mv/msg/458163/1017254/#msg_1017254
I am trying to load a uml model that I've generated with a java program. I created it with the UML sdk compilant to uml 2.4. I can see the model with the UML editor (in a tree format) and it validates correctly.
I am using a UML Profile, applying stereotypes to my classes.
To try to find the problem, I've found a reduced set of steps to reproduce my problem.
Create with Papyrus a UML file, with only one class, importing the profile, applying on stereotype to the class.
Delete the .di and .notation. So, here we are in my "initial situation", but with a file that we generated with Papyrus just to be sure that it is not a problem with the way that I am generating the uml file.
Now, follow the steps to create a diagram from a uml file:
- select the uml file
- menu file, new, papyrus diagram
I get an exception like the one in the file attached
Am I doing something wrong?
Thank you in advance for any help ]]>Federico Toledo2013-03-11T10:34:50-00:00Re: Problem loading UML file in Papyrus
https://www.eclipse.org/forums/index.php/mv/msg/458163/1017298/#msg_1017298
Which build of Papyrus are you using? There was an interval during
development of CDO integration on the cdo_kepler branch in which I had
broken the creation of new models, such that the ModelSet would attempt
to load the notation resource created by the wizard before it was
filled with its initial content. But that was fixed before the branch
was merged to trunk.
Can you provide the exception stack trace(s) from the workspace log
file to help diagnose? Depending on the release or build that you are
using, this should probably be reported in bugzilla: it looks like a
bug.
(I don't think you are doing anything wrong)
One thing to try: do you get the same result if you select your *.uml
file in the Project Explorer and launch the New Papyrus Model wizard?
It will open in a mode that creates a new model from the existing
domain (UML) model file.
Thanks,
Christian
On 2013-03-11 10:34:52 +0000, Federico Toledo said:
> Hi,
>
> I am trying to load a uml model that I've generated with a java
> program. I created it with the UML sdk compilant to uml 2.4. I can see
> the model with the UML editor (in a tree format) and it validates
> correctly.
> I am using a UML Profile, applying stereotypes to my classes.
>
> To try to find the problem, I've found a reduced set of steps to
> reproduce my problem.
>
> Create with Papyrus a UML file, with only one class, importing the
> profile, applying on stereotype to the class.
> Delete the .di and .notation. So, here we are in my "initial
> situation", but with a file that we generated with Papyrus just to be
> sure that it is not a problem with the way that I am generating the uml
> file.
>
> Now, follow the steps to create a diagram from a uml file:
> - select the uml file
> - menu file, new, papyrus diagram
>
> I get an exception like the one in the file attached
>
>
>
> Am I doing something wrong?
> Thank you in advance for any help
> <image>]]>Christian Damus2013-03-11T14:23:29-00:00Re: Problem loading UML file in Papyrus
https://www.eclipse.org/forums/index.php/mv/msg/458163/1017314/#msg_1017314
I've just updated Papyrus, and now I could advance a new step in this. Thank you.
Now I have the version is 0.9.2.v201302131112.
Now I have a different problem/question.
If I try to load a Class Diagram, I can, with the wizzard, selecting first the uml file, and then adding manually all elements I need in the diagram.
Now I've also tried with an activity diagram and with a sequence diagrams. The question is if there is any way to initialize the diagram, because if I create a sequence diagram I have to add all the elements of my sequence diagram... and I am not sure if I modify things in the diagram then they will be impacted in the uml model (in the original one) .. that actually is what I really want: build a model with a java program, let the user to modify it with a graphical tool, and then use the uml model as input in ATL transformations.
Thank you so much for your time!
]]>Federico Toledo2013-03-11T15:03:09-00:00Re: Problem loading UML file in Papyrus
https://www.eclipse.org/forums/index.php/mv/msg/458163/1017735/#msg_1017735
I think that the behaviour diagrams in Papyrus are not "canonical" as
they are in some other Eclipse-based UML modeling tools. You can build
the diagram in code, but after that, any modifications made by the user
will be reflected in the UML model, so that should not be an issue.
Cheers,
Christian
On 2013-03-11 15:03:09 +0000, Federico Toledo said:
> Hi,thank you for your answer!
>
> I've just updated Papyrus, and now I could advance a new step in this.
> Thank you.
> Now I have the version is 0.9.2.v201302131112.
>
> Now I have a different problem/question.
>
>
> If I try to load a Class Diagram, I can, with the wizzard, selecting
> first the uml file, and then adding manually all elements I need in the
> diagram. Now I've also tried with an activity diagram and with a
> sequence diagrams. The question is if there is any way to initialize
> the diagram, because if I create a sequence diagram I have to add all
> the elements of my sequence diagram... and I am not sure if I modify
> things in the diagram then they will be impacted in the uml model (in
> the original one) .. that actually is what I really want: build a model
> with a java program, let the user to modify it with a graphical tool,
> and then use the uml model as input in ATL transformations.
>
> Thank you so much for your time!]]>Christian Damus2013-03-12T13:09:31-00:00Re: Problem loading UML file in Papyrus
https://www.eclipse.org/forums/index.php/mv/msg/458163/1017738/#msg_1017738
Thank you!
Another question, is there a metamodel (perhaps even there are examples) as to use ATL to generate the .di file (and .notation) from the .uml file? ]]>Federico Toledo2013-03-12T13:14:47-00:00Re: Problem loading UML file in Papyrus
https://www.eclipse.org/forums/index.php/mv/msg/458163/1017739/#msg_1017739
Federico Toledo2013-03-12T13:15:15-00:00Re: Problem loading UML file in Papyrus
https://www.eclipse.org/forums/index.php/mv/msg/458163/1017813/#msg_1017813
The *.di file contains an EMF-based model, like everything else. The
model is defined by the DiPackage:
So, it is manipulated by Java code or ATL transformations just as any
other EMF-based model.
cW
On 2013-03-12 13:15:15 +0000, Federico Toledo said:
> otherwise, is there any API to generate .di from java code?]]>Christian Damus2013-03-12T15:30:48-00:00Re: Problem loading UML file in Papyrus
https://www.eclipse.org/forums/index.php/mv/msg/458163/1019191/#msg_1019191
bug 317156. I'm working already on that and have proposed a first patch. Maybe you want to try. But the problem is when the patch is applied I don't see an initialized diagram. I need to do this manually.]]>Andreas Brieg2013-03-15T08:03:12-00:00