|
Re: Create model from existing uml not working in Luna/Papyrus 1.0.0 [message #1407172 is a reply to message #1407002] |
Tue, 12 August 2014 03:12 |
Bryce Nordgren Messages: 3 Registered: January 2012 |
Junior Member |
|
|
My "Possibly Related Problem" may be due to the fact that I was using the Modeling Perspective instead of the Papyrus perspective. I didn't notice the Papyrus option at first.
Found a post which suggests to navigate to the xml resource via the Package Explorer, right click, and create a new papyrus model. (https://www.eclipse.org/forums/index.php/mv/msg/149654/470453/#msg_470453) This creates a blank model 100% of the time on my test data (The Business Motivation Model v. 1.2, posted on the OMG.org site).
I did get the OMG XMI to import, sort of. My process was:
- Replace the base element <xmi:XMI/> with <uml:Model/> from a blank papyrus model.
- Delete the trailing <mofext:xyz/> tag which followed the package.
- Change the <uml:Package/> item to <packagedElement type="uml:Package"/> ...
- Change four upper bounds from 0 to 1.
- Change a <type href="OMG URL reference to type"/> to href="platform://blahblah" when referring to a String.
After that, I can do a package import and use the OMG-defined model from my own models. However, I am noticing that the import was imperfect. Whatever wrote the OMG file appears to represent a multiplicity of "*" by omitting the lower bound and specifying an upper bound of "*". Papyrus/eclipse interprets this as "1..*".
I can fix it with the UML editor (the property editor looking thing), but I have yet to be able to create a diagram which directly edits this model.
[Updated on: Tue, 12 August 2014 14:31] Report message to a moderator
|
|
|
|
|
Re: Create model from existing uml not working in Luna/Papyrus 1.0.0 [message #1589634 is a reply to message #1588166] |
Wed, 28 January 2015 15:07 |
|
Hi, David,
Papyrus does not automatically create diagrams to visualize the
contents of your model.
You need to create diagrams (context-menu actions in the Model Explorer
and also available in the toolbar) and drag elements from the Model
Explorer into those diagrams to populate them.
HTH,
Christian
On 2015-01-28 15:00:18 +0000, David Wille said:
> I'm sorry for bringing up this old post, but I'm currently facing more
> or less the same problems.
> I'm trying to import an *.uml file into Papyrus, which I created using
> the "org.eclipse.uml2.uml" classes, but using the described workflow:
>
> 1. Navigate to *.uml file in Package Explorer
> 2. Right click
> 3. New > Other... > Papyrus Model
>
> results in an empty editor for the *.di file. The Model Explorer View
> shows the contents of the *.uml file, but I have no idea how to
> convince Papyrus to display them in the editor.
> Even if I create an *.uml file with Papyrus instead of using the
> "org.eclipse.uml2.uml" classes, I face the same problems when
> reimporting the file *.uml file with the described workflow. I'm not
> quite sure whether I'm missing something, but I would appreciate any
> hints on this topic.
>
> Thanks in advance and kind regards
> David
|
|
|
|
Powered by
FUDForum. Page generated in 0.03431 seconds