Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Problems saving model (losing hrefs)
Problems saving model (losing hrefs) [message #473945] Tue, 10 July 2007 21:24 Go to next message
Jim Strawn is currently offline Jim StrawnFriend
Messages: 29
Registered: July 2009
Junior Member
Hello,

I am having a bit of trouble saving a model file (.emx from RSM). I am
using UML2 version 1.1.1 and emf 2.1.0.

I am able to load the file and save the file without errors. When I
compare old against new, I am missing references to other model files
(which have been loaded into my resource set in the proper order).

Any help would be appreciated.

Ex Node.

Old
<children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
<element xmi:type="uml:Class"
href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/topAndResources/ServiceElement "/>
<layoutConstraint
xmi:type="notation:Size"
xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
width="1320"
height="1320"/>
</children>


New:
<children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
<element xmi:type="uml:Class"/>
<layoutConstraint
xmi:type="notation:Size"
xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
width="1320"
height="1320"/>
</children>
Re: Problems saving model (losing hrefs) [message #473948 is a reply to message #473945] Wed, 11 July 2007 13:29 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jim,

Which version of RSM are you using? a 6.x version?
When you load your file, do you notice missing content at that stage or is
this simply a saving out issue?
Could you try to export your .emx to .uml(2) and then try the same opening
and closing ( also export AbstractCore.emx ). Do you notice loss of href's
at that stage or are you simply losing hrefs from the notational elements?

Could it be that the element in AbstractCore.emx is somehow corrupt or
missing? Did you notice errors in the error log?

Any other details or a reproduceable scenario would be helpful. You might
want to cross post this to the emf newsgroup since they might be aware of
such serialization issues.

- James.


"Jim Strawn" <jistrawn@cisco.com> wrote in message
news:f70tdl$ut7$1@build.eclipse.org...
> Hello,
>
> I am having a bit of trouble saving a model file (.emx from RSM). I am
> using UML2 version 1.1.1 and emf 2.1.0.
>
> I am able to load the file and save the file without errors. When I
> compare old against new, I am missing references to other model files
> (which have been loaded into my resource set in the proper order).
>
> Any help would be appreciated.
>
> Ex Node.
>
> Old
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"
>
href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/
topAndResources/ServiceElement"/>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>
>
>
> New:
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"/>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>
Re: Problems saving model (losing hrefs) [message #473950 is a reply to message #473948] Wed, 11 July 2007 13:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030202090109050909030704
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

James,

No, I'm not aware of any generic issue like this. Only in the case that
OPTION_PROCESS_DANGLING_HREF mapped to something other than
OPTION_PROCESS_DANGLING_HREF_THROW, would something (a dangling
reference) disappear during save. I'd rather not see cross posting of
problems that are likely model specific. It's best to deal with UML2
issues here since I monitor this newsgroup anyway.


James Bruck wrote:
> Hi Jim,
>
> Which version of RSM are you using? a 6.x version?
> When you load your file, do you notice missing content at that stage or is
> this simply a saving out issue?
> Could you try to export your .emx to .uml(2) and then try the same opening
> and closing ( also export AbstractCore.emx ). Do you notice loss of href's
> at that stage or are you simply losing hrefs from the notational elements?
>
> Could it be that the element in AbstractCore.emx is somehow corrupt or
> missing? Did you notice errors in the error log?
>
> Any other details or a reproduceable scenario would be helpful. You might
> want to cross post this to the emf newsgroup since they might be aware of
> such serialization issues.
>
> - James.
>
>
> "Jim Strawn" <jistrawn@cisco.com> wrote in message
> news:f70tdl$ut7$1@build.eclipse.org...
>
>> Hello,
>>
>> I am having a bit of trouble saving a model file (.emx from RSM). I am
>> using UML2 version 1.1.1 and emf 2.1.0.
>>
>> I am able to load the file and save the file without errors. When I
>> compare old against new, I am missing references to other model files
>> (which have been loaded into my resource set in the proper order).
>>
>> Any help would be appreciated.
>>
>> Ex Node.
>>
>> Old
>> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
>> <element xmi:type="uml:Class"
>>
>>
> href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/
> topAndResources/ServiceElement"/>
>
>> <layoutConstraint
>> xmi:type="notation:Size"
>> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
>> width="1320"
>> height="1320"/>
>> </children>
>>
>>
>> New:
>> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
>> <element xmi:type="uml:Class"/>
>> <layoutConstraint
>> xmi:type="notation:Size"
>> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
>> width="1320"
>> height="1320"/>
>> </children>
>>
>
>
>


--------------030202090109050909030704
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
James,<br>
<br>
No, I'm not aware of any generic issue like this.&nbsp; Only in the case
that OPTION_PROCESS_DANGLING_HREF mapped to something other than
OPTION_PROCESS_DANGLING_HREF_THROW, would something (a dangling
reference) disappear during save.&nbsp; I'd rather not see cross posting of
problems that are likely model specific.&nbsp; It's best to deal with UML2
issues here since I monitor this newsgroup anyway.<br>
<br>
<br>
James Bruck wrote:
<blockquote cite="mid:f72m0m$9cg$2@build.eclipse.org" type="cite">
<pre wrap="">Hi Jim,

Which version of RSM are you using? a 6.x version?
When you load your file, do you notice missing content at that stage or is
this simply a saving out issue?
Could you try to export your .emx to .uml(2) and then try the same opening
and closing ( also export AbstractCore.emx ). Do you notice loss of href's
at that stage or are you simply losing hrefs from the notational elements?

Could it be that the element in AbstractCore.emx is somehow corrupt or
missing? Did you notice errors in the error log?

Any other details or a reproduceable scenario would be helpful. You might
want to cross post this to the emf newsgroup since they might be aware of
such serialization issues.

- James.


"Jim Strawn" <a class="moz-txt-link-rfc2396E" href="mailto:jistrawn@cisco.com">&lt;jistrawn@cisco.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:f70tdl$ut7$1@build.eclipse.org">news:f70tdl$ut7$1@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Hello,

I am having a bit of trouble saving a model file (.emx from RSM). I am
using UML2 version 1.1.1 and emf 2.1.0.

I am able to load the file and save the file without errors. When I
compare old against new, I am missing references to other model files
(which have been loaded into my resource set in the proper order).

Any help would be appreciated.

Ex Node.

Old
&lt;children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment"&gt;
&lt;element xmi:type="uml:Class"

</pre>
</blockquote>
<pre wrap=""><!---->href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/
topAndResources/ServiceElement"/&gt;
</pre>
<blockquote type="cite">
<pre wrap=""> &lt;layoutConstraint
xmi:type="notation:Size"
xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
width="1320"
height="1320"/&gt;
&lt;/children&gt;


New:
&lt;children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment"&gt;
&lt;element xmi:type="uml:Class"/&gt;
&lt;layoutConstraint
xmi:type="notation:Size"
xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
width="1320"
height="1320"/&gt;
&lt;/children&gt;
</pre>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</body>
</html>

--------------030202090109050909030704--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problems saving model (losing hrefs) [message #473951 is a reply to message #473945] Wed, 11 July 2007 14:23 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Jim,

The open source resource implementation cannot handle the cross-document
reference format used by RSM 6.x (it's proprietary). I suspect what's
happening is that the reference can't be resolved and is being discarded. If
you are manipulating RSM models, why not use the APIs available in RSM to do
so?

Kenn

"Jim Strawn" <jistrawn@cisco.com> wrote in message
news:f70tdl$ut7$1@build.eclipse.org...
> Hello,
>
> I am having a bit of trouble saving a model file (.emx from RSM). I am
> using UML2 version 1.1.1 and emf 2.1.0.
>
> I am able to load the file and save the file without errors. When I
> compare old against new, I am missing references to other model files
> (which have been loaded into my resource set in the proper order).
>
> Any help would be appreciated.
>
> Ex Node.
>
> Old
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"
> href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/topAndResources/ServiceElement "/>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>
>
>
> New:
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"/>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>
Re: Problems saving model (losing hrefs) [message #473952 is a reply to message #473951] Wed, 11 July 2007 15:18 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Jim,

I just tried exporting an .emx in 6.x with a cross-document reference and
instead of fixing up the href to point to the also exported referenced
document, it simply left the href point to the original .emx. That might be
what is going on. You might need to export all the models involved and then
fix up the hrefs to point to the newly exported models (.uml:2).

You might want to raise that with RSM people.

- James.


"Kenn Hussey" <khussey@ca.ibm.com> wrote in message
news:f72p5b$7f9$1@build.eclipse.org...
> Jim,
>
> The open source resource implementation cannot handle the cross-document
> reference format used by RSM 6.x (it's proprietary). I suspect what's
> happening is that the reference can't be resolved and is being discarded.
If
> you are manipulating RSM models, why not use the APIs available in RSM to
do
> so?
>
> Kenn
>
> "Jim Strawn" <jistrawn@cisco.com> wrote in message
> news:f70tdl$ut7$1@build.eclipse.org...
> > Hello,
> >
> > I am having a bit of trouble saving a model file (.emx from RSM). I am
> > using UML2 version 1.1.1 and emf 2.1.0.
> >
> > I am able to load the file and save the file without errors. When I
> > compare old against new, I am missing references to other model files
> > (which have been loaded into my resource set in the proper order).
> >
> > Any help would be appreciated.
> >
> > Ex Node.
> >
> > Old
> > <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> > <element xmi:type="uml:Class"
> >
href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/
topAndResources/ServiceElement"/>
> > <layoutConstraint
> > xmi:type="notation:Size"
> > xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> > width="1320"
> > height="1320"/>
> > </children>
> >
> >
> > New:
> > <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> > <element xmi:type="uml:Class"/>
> > <layoutConstraint
> > xmi:type="notation:Size"
> > xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> > width="1320"
> > height="1320"/>
> > </children>
>
>
Re: Problems saving model (losing hrefs) [message #473954 is a reply to message #473950] Wed, 11 July 2007 17:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Ed, James,

That is precisely what RSM does: it applies the option to silently discard
dangling HREFs on save.

Cheers,

Christian


Ed Merks wrote:

> James,
>
> No, I'm not aware of any generic issue like this. Only in the case that
> OPTION_PROCESS_DANGLING_HREF mapped to something other than
> OPTION_PROCESS_DANGLING_HREF_THROW, would something (a dangling
> reference) disappear during save. I'd rather not see cross posting of
> problems that are likely model specific. It's best to deal with UML2
> issues here since I monitor this newsgroup anyway.
>

<snip>
Re: Problems saving model (losing hrefs) [message #474206 is a reply to message #473945] Fri, 13 July 2007 18:59 Go to previous message
Jim Strawn is currently offline Jim StrawnFriend
Messages: 29
Registered: July 2009
Junior Member
Jim Strawn wrote:
> Hello,
>
> I am having a bit of trouble saving a model file (.emx from RSM). I am
> using UML2 version 1.1.1 and emf 2.1.0.
>
> I am able to load the file and save the file without errors. When I
> compare old against new, I am missing references to other model files
> (which have been loaded into my resource set in the proper order).
>
> Any help would be appreciated.
>
> Ex Node.
>
> Old
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"
> href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/topAndResources/ServiceElement "/>
>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>
>
>
> New:
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"/>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>

Thanks for all of the feedback! I ended up using the RSM APIs and all is
well.

Thanks again,
Jim S.
Re: Problems saving model (losing hrefs) [message #623647 is a reply to message #473945] Wed, 11 July 2007 13:29 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Jim,

Which version of RSM are you using? a 6.x version?
When you load your file, do you notice missing content at that stage or is
this simply a saving out issue?
Could you try to export your .emx to .uml(2) and then try the same opening
and closing ( also export AbstractCore.emx ). Do you notice loss of href's
at that stage or are you simply losing hrefs from the notational elements?

Could it be that the element in AbstractCore.emx is somehow corrupt or
missing? Did you notice errors in the error log?

Any other details or a reproduceable scenario would be helpful. You might
want to cross post this to the emf newsgroup since they might be aware of
such serialization issues.

- James.


"Jim Strawn" <jistrawn@cisco.com> wrote in message
news:f70tdl$ut7$1@build.eclipse.org...
> Hello,
>
> I am having a bit of trouble saving a model file (.emx from RSM). I am
> using UML2 version 1.1.1 and emf 2.1.0.
>
> I am able to load the file and save the file without errors. When I
> compare old against new, I am missing references to other model files
> (which have been loaded into my resource set in the proper order).
>
> Any help would be appreciated.
>
> Ex Node.
>
> Old
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"
>
href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/
topAndResources/ServiceElement"/>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>
>
>
> New:
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"/>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>
Re: Problems saving model (losing hrefs) [message #623649 is a reply to message #473948] Wed, 11 July 2007 13:49 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030202090109050909030704
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

James,

No, I'm not aware of any generic issue like this. Only in the case that
OPTION_PROCESS_DANGLING_HREF mapped to something other than
OPTION_PROCESS_DANGLING_HREF_THROW, would something (a dangling
reference) disappear during save. I'd rather not see cross posting of
problems that are likely model specific. It's best to deal with UML2
issues here since I monitor this newsgroup anyway.


James Bruck wrote:
> Hi Jim,
>
> Which version of RSM are you using? a 6.x version?
> When you load your file, do you notice missing content at that stage or is
> this simply a saving out issue?
> Could you try to export your .emx to .uml(2) and then try the same opening
> and closing ( also export AbstractCore.emx ). Do you notice loss of href's
> at that stage or are you simply losing hrefs from the notational elements?
>
> Could it be that the element in AbstractCore.emx is somehow corrupt or
> missing? Did you notice errors in the error log?
>
> Any other details or a reproduceable scenario would be helpful. You might
> want to cross post this to the emf newsgroup since they might be aware of
> such serialization issues.
>
> - James.
>
>
> "Jim Strawn" <jistrawn@cisco.com> wrote in message
> news:f70tdl$ut7$1@build.eclipse.org...
>
>> Hello,
>>
>> I am having a bit of trouble saving a model file (.emx from RSM). I am
>> using UML2 version 1.1.1 and emf 2.1.0.
>>
>> I am able to load the file and save the file without errors. When I
>> compare old against new, I am missing references to other model files
>> (which have been loaded into my resource set in the proper order).
>>
>> Any help would be appreciated.
>>
>> Ex Node.
>>
>> Old
>> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
>> <element xmi:type="uml:Class"
>>
>>
> href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/
> topAndResources/ServiceElement"/>
>
>> <layoutConstraint
>> xmi:type="notation:Size"
>> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
>> width="1320"
>> height="1320"/>
>> </children>
>>
>>
>> New:
>> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
>> <element xmi:type="uml:Class"/>
>> <layoutConstraint
>> xmi:type="notation:Size"
>> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
>> width="1320"
>> height="1320"/>
>> </children>
>>
>
>
>


--------------030202090109050909030704
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
James,<br>
<br>
No, I'm not aware of any generic issue like this.&nbsp; Only in the case
that OPTION_PROCESS_DANGLING_HREF mapped to something other than
OPTION_PROCESS_DANGLING_HREF_THROW, would something (a dangling
reference) disappear during save.&nbsp; I'd rather not see cross posting of
problems that are likely model specific.&nbsp; It's best to deal with UML2
issues here since I monitor this newsgroup anyway.<br>
<br>
<br>
James Bruck wrote:
<blockquote cite="mid:f72m0m$9cg$2@build.eclipse.org" type="cite">
<pre wrap="">Hi Jim,

Which version of RSM are you using? a 6.x version?
When you load your file, do you notice missing content at that stage or is
this simply a saving out issue?
Could you try to export your .emx to .uml(2) and then try the same opening
and closing ( also export AbstractCore.emx ). Do you notice loss of href's
at that stage or are you simply losing hrefs from the notational elements?

Could it be that the element in AbstractCore.emx is somehow corrupt or
missing? Did you notice errors in the error log?

Any other details or a reproduceable scenario would be helpful. You might
want to cross post this to the emf newsgroup since they might be aware of
such serialization issues.

- James.


"Jim Strawn" <a class="moz-txt-link-rfc2396E" href="mailto:jistrawn@cisco.com">&lt;jistrawn@cisco.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:f70tdl$ut7$1@build.eclipse.org">news:f70tdl$ut7$1@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">Hello,

I am having a bit of trouble saving a model file (.emx from RSM). I am
using UML2 version 1.1.1 and emf 2.1.0.

I am able to load the file and save the file without errors. When I
compare old against new, I am missing references to other model files
(which have been loaded into my resource set in the proper order).

Any help would be appreciated.

Ex Node.

Old
&lt;children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment"&gt;
&lt;element xmi:type="uml:Class"

</pre>
</blockquote>
<pre wrap=""><!---->href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/
topAndResources/ServiceElement"/&gt;
</pre>
<blockquote type="cite">
<pre wrap=""> &lt;layoutConstraint
xmi:type="notation:Size"
xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
width="1320"
height="1320"/&gt;
&lt;/children&gt;


New:
&lt;children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment"&gt;
&lt;element xmi:type="uml:Class"/&gt;
&lt;layoutConstraint
xmi:type="notation:Size"
xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
width="1320"
height="1320"/&gt;
&lt;/children&gt;
</pre>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
<br>
</body>
</html>

--------------030202090109050909030704--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problems saving model (losing hrefs) [message #623650 is a reply to message #473945] Wed, 11 July 2007 14:23 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Jim,

The open source resource implementation cannot handle the cross-document
reference format used by RSM 6.x (it's proprietary). I suspect what's
happening is that the reference can't be resolved and is being discarded. If
you are manipulating RSM models, why not use the APIs available in RSM to do
so?

Kenn

"Jim Strawn" <jistrawn@cisco.com> wrote in message
news:f70tdl$ut7$1@build.eclipse.org...
> Hello,
>
> I am having a bit of trouble saving a model file (.emx from RSM). I am
> using UML2 version 1.1.1 and emf 2.1.0.
>
> I am able to load the file and save the file without errors. When I
> compare old against new, I am missing references to other model files
> (which have been loaded into my resource set in the proper order).
>
> Any help would be appreciated.
>
> Ex Node.
>
> Old
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"
> href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/topAndResources/ServiceElement "/>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>
>
>
> New:
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"/>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>
Re: Problems saving model (losing hrefs) [message #623651 is a reply to message #473951] Wed, 11 July 2007 15:18 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Jim,

I just tried exporting an .emx in 6.x with a cross-document reference and
instead of fixing up the href to point to the also exported referenced
document, it simply left the href point to the original .emx. That might be
what is going on. You might need to export all the models involved and then
fix up the hrefs to point to the newly exported models (.uml:2).

You might want to raise that with RSM people.

- James.


"Kenn Hussey" <khussey@ca.ibm.com> wrote in message
news:f72p5b$7f9$1@build.eclipse.org...
> Jim,
>
> The open source resource implementation cannot handle the cross-document
> reference format used by RSM 6.x (it's proprietary). I suspect what's
> happening is that the reference can't be resolved and is being discarded.
If
> you are manipulating RSM models, why not use the APIs available in RSM to
do
> so?
>
> Kenn
>
> "Jim Strawn" <jistrawn@cisco.com> wrote in message
> news:f70tdl$ut7$1@build.eclipse.org...
> > Hello,
> >
> > I am having a bit of trouble saving a model file (.emx from RSM). I am
> > using UML2 version 1.1.1 and emf 2.1.0.
> >
> > I am able to load the file and save the file without errors. When I
> > compare old against new, I am missing references to other model files
> > (which have been loaded into my resource set in the proper order).
> >
> > Any help would be appreciated.
> >
> > Ex Node.
> >
> > Old
> > <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> > <element xmi:type="uml:Class"
> >
href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/
topAndResources/ServiceElement"/>
> > <layoutConstraint
> > xmi:type="notation:Size"
> > xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> > width="1320"
> > height="1320"/>
> > </children>
> >
> >
> > New:
> > <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> > <element xmi:type="uml:Class"/>
> > <layoutConstraint
> > xmi:type="notation:Size"
> > xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> > width="1320"
> > height="1320"/>
> > </children>
>
>
Re: Problems saving model (losing hrefs) [message #623653 is a reply to message #473950] Wed, 11 July 2007 17:39 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Ed, James,

That is precisely what RSM does: it applies the option to silently discard
dangling HREFs on save.

Cheers,

Christian


Ed Merks wrote:

> James,
>
> No, I'm not aware of any generic issue like this. Only in the case that
> OPTION_PROCESS_DANGLING_HREF mapped to something other than
> OPTION_PROCESS_DANGLING_HREF_THROW, would something (a dangling
> reference) disappear during save. I'd rather not see cross posting of
> problems that are likely model specific. It's best to deal with UML2
> issues here since I monitor this newsgroup anyway.
>

<snip>
Re: Problems saving model (losing hrefs) [message #623663 is a reply to message #473945] Fri, 13 July 2007 18:59 Go to previous message
Jim Strawn is currently offline Jim StrawnFriend
Messages: 29
Registered: July 2009
Junior Member
Jim Strawn wrote:
> Hello,
>
> I am having a bit of trouble saving a model file (.emx from RSM). I am
> using UML2 version 1.1.1 and emf 2.1.0.
>
> I am able to load the file and save the file without errors. When I
> compare old against new, I am missing references to other model files
> (which have been loaded into my resource set in the proper order).
>
> Any help would be appreciated.
>
> Ex Node.
>
> Old
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"
> href=" ../AbstractCore/AbstractCore.emx#_zaGuYLz7EduWf4B9Cbg8WQ?Abs tractCore/topAndResources/ServiceElement "/>
>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>
>
>
> New:
> <children xmi:id="_F7i-ZLz-EduWf4B9Cbg8WQ" type="ImageCompartment">
> <element xmi:type="uml:Class"/>
> <layoutConstraint
> xmi:type="notation:Size"
> xmi:id="_F7i-Zbz-EduWf4B9Cbg8WQ"
> width="1320"
> height="1320"/>
> </children>

Thanks for all of the feedback! I ended up using the RSM APIs and all is
well.

Thanks again,
Jim S.
Previous Topic:Re: Generating code with stereotypes
Next Topic:[Announce] MDT UML2 2.0.4 M200707131442 is available
Goto Forum:
  


Current Time: Fri Apr 19 20:30:47 GMT 2024

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

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

Back to the top