Create model from existing uml not working in Luna/Papyrus 1.0.0 [message #1407002] |
Mon, 11 August 2014 12:31  |
Eclipse User |
|
|
|
Running Eclipse Luna / Papyrus 1.0.0 on Linux Mint 17 (Ubuntu 14.04).
I am trying to import the uml profile for RDF (version 1.1beta2 posted on the OMG website. I'd include a link, but this forum says: "You can only use links to eclipse.org sites while you have fewer than 5 messages."
Instructions seem to indicate that I would import the file into a project, navigate to it within the Model Explorer, then right click and initialize a papyrus diagram. (https://wiki.eclipse.org/Papyrus_User_Guide#Create_a_diagram_from_an_existing_uml_file).
Problem: The "Model Explorer" never shows the tree for existing uml files (created by Paprus or created externally). It shows "No model available", unless the diagram editor for the model is open and currently selected. The key is that the selected diagram editor controls what the Model Explorer displays, and since the uml file does not have a diagram yet, it can never be displayed. "Package explorer" does not have the option to initialize a papyrus diagram.
Possibly Related Problem: The "Model Explorer" never shows any tree for any uml files when the Modeling perspective is open. Switching to the Java perspective displays a tree in the Model Explorer.
Has the recommended method of importing externally defined UML models changed in the new version?
|
|
|
|
|
|
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 10:07   |
Eclipse User |
|
|
|
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
|
|
|
Re: Create model from existing uml not working in Luna/Papyrus 1.0.0 [message #1687936 is a reply to message #1589634] |
Thu, 19 March 2015 20:24  |
Eclipse User |
|
|
|
I found this thread and though great now I know why the *.di is empty. But for me when I open the Papyrus Perspective the Model Explorer is empty, no matter what I give focus to in the Project Explorer or inside a *.uml file. I checked Preferences and restore them to default but still nothing. What am I missing? I am on Juno 4.4.1 and Papyrus 1.0.2.201502181349
[Updated on: Thu, 19 March 2015 20:24] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.06499 seconds