Home » Modeling » Papyrus » Problem loading UML file in Papyrus(I generate a UML file with a java program, and I want to load the class diagram)
Problem loading UML file in Papyrus [message #1017254] |
Mon, 11 March 2013 06:34  |
Eclipse User |
|
|
|
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
Attachment: error.png
(Size: 30.25KB, Downloaded 324 times)
|
|
|
Re: Problem loading UML file in Papyrus [message #1017298 is a reply to message #1017254] |
Mon, 11 March 2013 10:23   |
Eclipse User |
|
|
|
Hi, Federico,
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>
|
|
|
Re: Problem loading UML file in Papyrus [message #1017314 is a reply to message #1017298] |
Mon, 11 March 2013 11:03   |
Eclipse User |
|
|
|
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!
|
|
|
Re: Problem loading UML file in Papyrus [message #1017735 is a reply to message #1017314] |
Tue, 12 March 2013 09:09   |
Eclipse User |
|
|
|
Hi, Federico,
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!
|
|
| | | | |
Goto Forum:
Current Time: Tue Jul 22 01:19:42 EDT 2025
Powered by FUDForum. Page generated in 0.06158 seconds
|