Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Inconsistencies between ".di"file and ".uml"file
Inconsistencies between ".di"file and ".uml"file [message #987025] Fri, 23 November 2012 02:58 Go to next message
Beatus Ding is currently offline Beatus DingFriend
Messages: 18
Registered: November 2012
Junior Member
My papyrus is 0.9.1,when I delete something,like one class,in the class diagram and save the ".di" file,but the ".uml" file remain the deleted element.I reopen the ".uml" file,it remain the deleted element as before.What's wrong?Is it a bug?By the way, how can I generate the ".di" file from ".uml" file?
Re: Inconsistencies between ".di"file and ".uml"file [message #987031 is a reply to message #987025] Fri, 23 November 2012 03:48 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi,

You are probably deleting only the *view* of the element from the
diagram. To delete the element from the model also is a different
operation. By default, the Delete key deletes only the view.
Right-click on the element in the diagram to find an action to delete
the element from the model.

What do you mean by generating the *.di file from the *.uml file? It
isn't a generated file. It has entirely its own data, with only
references to the diagrams in the *.notation file. This latter is what
references the elements in the *.uml file.

HTH,

Christian


On 2012-11-23 02:58:29 +0000, Beatus Ding said:

> My papyrus is 0.9.1,when I delete something,like one class,in the class
> diagram and save the ".di" file,but the ".uml" file remain the deleted
> element.I reopen the ".uml" file,it remain the deleted element as
> before.What's wrong?Is it a bug?By the way, how can I generate the
> ".di" file from ".uml" file?
Re: Inconsistencies between ".di"file and ".uml"file [message #987039 is a reply to message #987031] Fri, 23 November 2012 05:53 Go to previous messageGo to next message
Ann barry is currently offline Ann barryFriend
Messages: 28
Registered: November 2012
Junior Member
Hello Christian
why di and notation file created when we create new papyrus model?
Regards
Re: Inconsistencies between ".di"file and ".uml"file [message #987064 is a reply to message #987031] Fri, 23 November 2012 09:21 Go to previous messageGo to next message
Beatus Ding is currently offline Beatus DingFriend
Messages: 18
Registered: November 2012
Junior Member
I copy the content of the ".uml" file to a text file,and I delete the ".di" file carelessly.So I wonder if I can recover the graphical model from the content of the ".uml" file.
Re: Inconsistencies between ".di"file and ".uml" [message #987100 is a reply to message #987064] Fri, 23 November 2012 13:21 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi,

The diagrams are all in the *.notation file, not the *.di file.

You can recover the *.di file from the workspace's local history.
Right-click on the folder that contained the *.di file and select the
"Restore from Local History..." action.

HTH,

Christian

On 2012-11-23 09:21:24 +0000, Beatus Ding said:

> I copy the content of the ".uml" file to a text file,and I delete the
> ".di" file carelessly.So I wonder if I can recover the graphical model
> from the content of the ".uml" file.
Re: Inconsistencies between ".di"file and ".uml" [message #987101 is a reply to message #987039] Fri, 23 November 2012 13:23 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Ann,

Do you mean Why are they separate files and not just combined in one?
Separation of concerns, I suppose, but hopefully a Papyrus committer
who knows the history of the design can answer that.

cW


On 2012-11-23 05:53:17 +0000, Ann barry said:

> Hello Christian why di and notation file created when we create new
> papyrus model?
> Regards
Re: Inconsistencies between ".di"file and ".uml" [message #987141 is a reply to message #987101] Fri, 23 November 2012 18:07 Go to previous message
Ann barry is currently offline Ann barryFriend
Messages: 28
Registered: November 2012
Junior Member
Hello Christian

i also don't know the exact reason
may be related to design concept:separation of concern
however, thank you for your analysis

Regards
Ann
Previous Topic: MARTE palette usage
Next Topic:Failed to load Papyrus model with MARTE Stereotypes in standalone application
Goto Forum:
  


Current Time: Fri Mar 29 09:04:55 GMT 2024

Powered by FUDForum. Page generated in 0.03773 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top