Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Diagram -> Model -> Diagram - how to do this?
Diagram -> Model -> Diagram - how to do this? [message #477547] Sun, 22 June 2008 14:52 Go to next message
Eclipse UserFriend
Originally posted by: marian-misc.rainer-harbach.eu

Hello,
I'm doing a programming project for university in which the aim is to
generate a UML model using a graphical editor (for example Eclipse UML2
Tools), then add properties programmatically and then view the result in
the graphical editor.
I implemented a sample program, but I encountered the following problem:
When saving the model programmatically, all xmi:ids in the .uml file
change - which means that the UML2 Tools Editor then cannot display the
diagram anymore.

I would be glad if someone could point me in the right direction on how to
solve this.

Thanks,
Marian
Re: Diagram -> Model -> Diagram - how to do this? [message #477554 is a reply to message #477547] Thu, 26 June 2008 03:51 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Marian,

Are you adding the elements from the model to a different resource before
saving it? If you save the same resource that you loaded the model into in
the first place, the identifiers shouldn't change...

Kenn

"Marian Rainer-Harbach" <marian-misc@rainer-harbach.eu> wrote in message
news:6a73b6923b2da98469f1b6f1e7eebd10$1@www.eclipse.org...
> Hello,
> I'm doing a programming project for university in which the aim is to
> generate a UML model using a graphical editor (for example Eclipse UML2
> Tools), then add properties programmatically and then view the result in
> the graphical editor.
> I implemented a sample program, but I encountered the following problem:
> When saving the model programmatically, all xmi:ids in the .uml file
> change - which means that the UML2 Tools Editor then cannot display the
> diagram anymore.
>
> I would be glad if someone could point me in the right direction on how to
> solve this.
>
> Thanks,
> Marian
>
Re: Diagram -> Model -> Diagram - how to do this? [message #477555 is a reply to message #477554] Thu, 26 June 2008 11:18 Go to previous message
Eclipse UserFriend
Originally posted by: marian-misc.rainer-harbach.eu

You are right, when saving I created a new resource instead of using the
resource I loaded the model from.
Now it works, thanks a lot!

Marian
Re: Diagram -> Model -> Diagram - how to do this? [message #626745 is a reply to message #477547] Thu, 26 June 2008 03:51 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Marian,

Are you adding the elements from the model to a different resource before
saving it? If you save the same resource that you loaded the model into in
the first place, the identifiers shouldn't change...

Kenn

"Marian Rainer-Harbach" <marian-misc@rainer-harbach.eu> wrote in message
news:6a73b6923b2da98469f1b6f1e7eebd10$1@www.eclipse.org...
> Hello,
> I'm doing a programming project for university in which the aim is to
> generate a UML model using a graphical editor (for example Eclipse UML2
> Tools), then add properties programmatically and then view the result in
> the graphical editor.
> I implemented a sample program, but I encountered the following problem:
> When saving the model programmatically, all xmi:ids in the .uml file
> change - which means that the UML2 Tools Editor then cannot display the
> diagram anymore.
>
> I would be glad if someone could point me in the right direction on how to
> solve this.
>
> Thanks,
> Marian
>
Re: Diagram -> Model -> Diagram - how to do this? [message #626746 is a reply to message #477554] Thu, 26 June 2008 11:18 Go to previous message
Eclipse UserFriend
Originally posted by: marian-misc.rainer-harbach.eu

You are right, when saving I created a new resource instead of using the
resource I loaded the model from.
Now it works, thanks a lot!

Marian
Previous Topic:[Announce] MDT UML2 2.2.0 is available
Next Topic:Use a UML model with a profile
Goto Forum:
  


Current Time: Tue Mar 31 02:59:08 GMT 2020

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

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

Back to the top