Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO][0.8.0] eResource
[CDO][0.8.0] eResource [message #96513] Wed, 12 September 2007 13:13 Go to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_04A8_01C7F51D.3674F600
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Eike,

Can we use generated classes that inherit from CDOObjectImpl without =
CDOResource ?=20
For our test case we would like to save them in a different resource =
(XMIResourceIMpl)

ResourceImpl resource

resource.getContent().add(eObject);

eObject.eResource()=20

eObject.Resource equal null. ???

CDOObjectImpl.eSetDirectResource delegate the call to the super class... =
this is correct
CDOObjectImpl.eResource doesn't delegate the call to teh super class .. =
it should Right ?



CDOObjectImpl
protected void eSetDirectResource(Internal resource)
{
super.eSetDirectResource(resource);
if (resource instanceof CDOResourceImpl)
{
this.resource =3D (CDOResourceImpl)resource;
}
}


@Override
public Resource eResource()
{
return cdoResource();
}
------=_NextPart_000_04A8_01C7F51D.3674F600
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi Eike,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can we use generated classes that =
inherit from=20
CDOObjectImpl&nbsp;without CDOResource ? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For our test case we would like to save =
them in a=20
different resource (XMIResourceIMpl)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ResourceImpl resource</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>resource.getContent().add(eObject);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>eObject.eResource() </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>eObject.Resource equal null. =
???</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>CDOObjectImpl.eSetDirectResource =
delegate the call=20
to the super class... this is correct</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>CDOObjectImpl.eResource doesn't =
delegate the call=20
to teh super class .. it should&nbsp; Right ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>CDOObjectImpl</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>protected void=20
eSetDirectResource(Internal resource)</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial=20
size=3D2>super.eSetDirectResource(resource);</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>if (resource instanceof=20
CDOResourceImpl)</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>{</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>this.resource =3D=20
(CDOResourceImpl)resource;</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><FONT =
color=3D#646464 size=3D2>
<DIV align=3Dleft><FONT face=3DArial=20
color=3D#000000>@Override</FONT></DIV></FONT><FONT size=3D2>
<DIV align=3Dleft></FONT><B><FONT color=3D#7f0055 size=3D2><FONT=20
face=3DArial>public</FONT></B></FONT><FONT size=3D2><FONT face=3DArial> =
Resource=20
eResource()</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial>{</FONT></DIV>
<DIV align=3Dleft></FONT><B><FONT color=3D#7f0055 size=3D2><FONT=20
face=3DArial>&nbsp;&nbsp; return</FONT></B></FONT><FONT size=3D2><FONT =
face=3DArial>=20
cdoResource();</FONT></DIV>
<DIV><FONT face=3DArial>}</FONT></DIV></FONT></BODY></HTML>

------=_NextPart_000_04A8_01C7F51D.3674F600--
Re: [CDO][0.8.0] eResource [message #96544 is a reply to message #96513] Wed, 12 September 2007 15:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

This is a multi-part message in MIME format.
--------------020102020702010503090102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Simon,

Comments inline...


Simon McDuff schrieb:
> Hi Eike,
>
> Can we use generated classes that inherit from CDOObjectImpl without
> CDOResource ?
This shall certainly work but I'm not sure if I already have a test case
for this.
So I can't guarantee at this moment if it's really free of bugs.
If you already have a test case and encounter problems, please file a
bug so that I don't forget to fix it.

> For our test case we would like to save them in a different resource
> (XMIResourceIMpl)
>
> ResourceImpl resource
>
> resource.getContent().add(eObject);
>
> eObject.eResource()
What do you want to express with the previous line?

> eObject.Resource equal null. ???
What do you want to express with the previous line?

> CDOObjectImpl.eSetDirectResource delegate the call to the super
> class... this is correct
> CDOObjectImpl.eResource doesn't delegate the call to teh super class
> .. it should Right ?
I'm not sure at the moment. I remember that the interrelations of all
these methods and the
special requirements for CDOObjectImpls are very subtle. I'd say if it
doesn't deliver the same
results as legacy EObjects with an arbitrary Resource I should have a
look at it.

Cheers
/Eike



--------------020102020702010503090102
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">
Hi Simon,<br>
<br>
Comments inline...<br>
<br>
<br>
Simon McDuff schrieb:
<blockquote cite="mid:fc8om6$afg$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.3157" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Hi Eike,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Can we use generated classes that
inherit from CDOObjectImpl&nbsp;without CDOResource ?</font></div>
</blockquote>
This shall certainly work but I'm not sure if I already have a test
case for this.<br>
So I can't guarantee at this moment if it's really free of bugs.<br>
If you already have a test case and encounter problems, please file a
bug so that I don't forget to fix it.<br>
<br>
<blockquote cite="mid:fc8om6$afg$1@build.eclipse.org" type="cite">
<div><font face="Arial" size="2"> </font></div>
<div><font face="Arial" size="2">For our test case we would like to
save them in a different resource (XMIResourceIMpl)</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">ResourceImpl resource</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">resource.getContent().add(eObject);</font></div >
<div>&nbsp;</div>
<div><font face="Arial" size="2">eObject.eResource()</font></div>
</blockquote>
What do you want to express with the previous line?<br>
<br>
<blockquote cite="mid:fc8om6$afg$1@build.eclipse.org" type="cite">
<div><font face="Arial" size="2"> </font></div>
<div>&nbsp;<font face="Arial" size="2">eObject.Resource equal null. ???</font></div>
</blockquote>
What do you want to express with the previous line?<br>
<br>
<blockquote cite="mid:fc8om6$afg$1@build.eclipse.org" type="cite">
<div><font face="Arial" size="2">CDOObjectImpl.eSetDirectResource
delegate the call to the super class... this is correct</font></div>
<div><font face="Arial" size="2">CDOObjectImpl.eResource doesn't
delegate the call to teh super class .. it should&nbsp; Right ?</font></div>
</blockquote>
I'm not sure at the moment. I remember that the interrelations of all
these methods and the <br>
special requirements for CDOObjectImpls are very subtle. I'd say if it
doesn't deliver the same<br>
results as legacy EObjects with an arbitrary Resource I should have a
look at it.<br>
<font size="2"><font face="Arial"><br>
Cheers<br>
/Eike<br>
<br>
<br>
</font></font>
</body>
</html>

--------------020102020702010503090102--
Re: [CDO][0.8.0] eResource [message #96559 is a reply to message #96544] Wed, 12 September 2007 15:51 Go to previous messageGo to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_04DA_01C7F533.42FB6F60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


"Eike Stepper" <stepper@sympedia.de> wrote in message =
news:fc91jd$sp9$1@build.eclipse.org...
Hi Simon,

Comments inline...


Simon McDuff schrieb:=20
Hi Eike,

Can we use generated classes that inherit from CDOObjectImpl without =
CDOResource ?
This shall certainly work but I'm not sure if I already have a test =
case for this.
So I can't guarantee at this moment if it's really free of bugs.

I will send you a test case tonight ... really easy to reproduce.=20


If you already have a test case and encounter problems, please file a =
bug so that I don't forget to fix it.


For our test case we would like to save them in a different resource =
(XMIResourceIMpl)

ResourceImpl resource

resource.getContent().add(eObject);

eObject.eResource()
What do you want to express with the previous line?
This was the code to reproduce the problem.=20

eObject.Resource equal null. ???
What do you want to express with the previous line?
When I call eObject.eResource() , it returns me null. It is not =
suppose to because I attached it to the resource.


CDOObjectImpl.eSetDirectResource delegate the call to the super =
class... this is correct
CDOObjectImpl.eResource doesn't delegate the call to teh super class =
... it should Right ?
I'm not sure at the moment. I remember that the interrelations of all =
these methods and the=20
special requirements for CDOObjectImpls are very subtle. I'd say if it =
doesn't deliver the same
results as legacy EObjects with an arbitrary Resource I should have a =
look at it.

Cheers
/Eike



------=_NextPart_000_04DA_01C7F533.42FB6F60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Eike Stepper" &lt;<A=20
href=3D"mailto:stepper@sympedia.de">stepper@sympedia.de</A>&gt; wrote =
in message=20
<A=20
=
href=3D"news:fc91jd$sp9$1@build.eclipse.org">news:fc91jd$sp9$1@build.ecli=
pse.org</A>...</DIV>Hi=20
Simon,<BR><BR>Comments inline...<BR><BR><BR>Simon McDuff schrieb:=20
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>Hi Eike,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can we use generated classes that =
inherit from=20
CDOObjectImpl&nbsp;without CDOResource ?</FONT></DIV></BLOCKQUOTE>
<DIV>This shall certainly work but I'm not sure if I already have a =
test case=20
for this.<BR>So I can't guarantee at this moment if it's really free =
of=20
bugs.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>I will send you a test case =
tonight ...=20
really easy to reproduce.</STRONG> </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><FONT=20
face=3DArial size=3D2></FONT><BR>If you already have a test case and =
encounter=20
problems, please file a bug so that I don't forget to fix =
it.<BR><BR></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For our test case we would like to =
save them in=20
a different resource (XMIResourceIMpl)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ResourceImpl resource</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>resource.getContent().add(eObject);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>eObject.eResource()</FONT></DIV></BLOCKQUOTE>
<DIV>What do you want to express with the previous line?</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>This&nbsp;was the code to =
reproduce the=20
problem. </STRONG></FONT><BR></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2></FONT></DIV>
<DIV>&nbsp;<FONT face=3DArial size=3D2>eObject.Resource equal null.=20
???</FONT></DIV></BLOCKQUOTE>
<DIV>What do you want to express with the previous line?</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>When I call =
eObject.eResource()&nbsp;, it=20
returns me null. It is not suppose to because I attached it to the=20
resource.</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=3DArial size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>CDOObjectImpl.eSetDirectResource =
delegate the=20
call to the super class... this is correct</FONT></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2>CDOObjectImpl.eResource doesn't =
delegate the=20
call to teh super class .. it should&nbsp; Right=20
?</FONT></DIV></BLOCKQUOTE>I'm not sure at the moment. I remember that =
the=20
interrelations of all these methods and the <BR>special requirements =
for=20
CDOObjectImpls are very subtle. I'd say if it doesn't deliver the=20
same<BR>results as legacy EObjects with an arbitrary Resource I should =
have a=20
look at it.<BR><FONT size=3D2><FONT=20
face=3DArial><BR>Cheers<BR>/Eike<BR><BR><BR></BLOCKQUOTE ></FONT></FONT></=
BODY></HTML>

------=_NextPart_000_04DA_01C7F533.42FB6F60--
Re: [CDO][0.8.0] eResource [message #96602 is a reply to message #96559] Wed, 12 September 2007 22:33 Go to previous message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C7F56B.6B45A2A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D203165
"Simon McDuff" <smcduff@hotmail.com> a =E9crit dans le message de =
news: fc91u4$j4n$1@build.eclipse.org...

"Eike Stepper" <stepper@sympedia.de> wrote in message =
news:fc91jd$sp9$1@build.eclipse.org...
Hi Simon,

Comments inline...


Simon McDuff schrieb:=20
Hi Eike,

Can we use generated classes that inherit from CDOObjectImpl =
without CDOResource ?
This shall certainly work but I'm not sure if I already have a test =
case for this.
So I can't guarantee at this moment if it's really free of bugs.

I will send you a test case tonight ... really easy to reproduce.=20


If you already have a test case and encounter problems, please file =
a bug so that I don't forget to fix it.


For our test case we would like to save them in a different =
resource (XMIResourceIMpl)

ResourceImpl resource

resource.getContent().add(eObject);

eObject.eResource()
What do you want to express with the previous line?
This was the code to reproduce the problem.=20

eObject.Resource equal null. ???
What do you want to express with the previous line?
When I call eObject.eResource() , it returns me null. It is not =
suppose to because I attached it to the resource.


CDOObjectImpl.eSetDirectResource delegate the call to the super =
class... this is correct
CDOObjectImpl.eResource doesn't delegate the call to teh super =
class .. it should Right ?
I'm not sure at the moment. I remember that the interrelations of =
all these methods and the=20
special requirements for CDOObjectImpls are very subtle. I'd say if =
it doesn't deliver the same
results as legacy EObjects with an arbitrary Resource I should have =
a look at it.

Cheers
/Eike



------=_NextPart_000_000A_01C7F56B.6B45A2A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.6000.16525" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D203165">https://b=
ugs.eclipse.org/bugs/show_bug.cgi?id=3D203165</A></FONT></DIV >
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Simon McDuff" &lt;<A=20
href=3D"mailto:smcduff@hotmail.com">smcduff@hotmail.com</A>&gt; a =
=E9crit dans le=20
message de news: <A=20
=
href=3D"mailto:fc91u4$j4n$1@build.eclipse.org">fc91u4$j4n$1@build.eclipse=
..org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Eike Stepper" &lt;<A=20
href=3D"mailto:stepper@sympedia.de">stepper@sympedia.de</A>&gt; =
wrote in=20
message <A=20
=
href=3D"news:fc91jd$sp9$1@build.eclipse.org">news:fc91jd$sp9$1@build.ecli=
pse.org</A>...</DIV>Hi=20
Simon,<BR><BR>Comments inline...<BR><BR><BR>Simon McDuff schrieb:=20
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>Hi Eike,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can we use generated classes that =
inherit=20
from CDOObjectImpl&nbsp;without CDOResource =
?</FONT></DIV></BLOCKQUOTE>
<DIV>This shall certainly work but I'm not sure if I already have a =
test=20
case for this.<BR>So I can't guarantee at this moment if it's really =
free of=20
bugs.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>I will send you a test case =
tonight ...=20
really easy to reproduce.</STRONG> </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><FONT=20
face=3DArial size=3D2></FONT><BR>If you already have a test case and =
encounter=20
problems, please file a bug so that I don't forget to fix =
it.<BR><BR></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For our test case we would like =
to save them=20
in a different resource (XMIResourceIMpl)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ResourceImpl =
resource</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>resource.getContent().add(eObject);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>eObject.eResource()</FONT></DIV></BLOCKQUOTE>
<DIV>What do you want to express with the previous line?</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>This&nbsp;was the code to =
reproduce the=20
problem. </STRONG></FONT><BR></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2></FONT></DIV>
<DIV>&nbsp;<FONT face=3DArial size=3D2>eObject.Resource equal =
null.=20
???</FONT></DIV></BLOCKQUOTE>
<DIV>What do you want to express with the previous line?</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>When I call =
eObject.eResource()&nbsp;,=20
it returns me null. It is not suppose to because I attached it to =
the=20
resource.</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=3DArial =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>CDOObjectImpl.eSetDirectResource =
delegate the=20
call to the super class... this is correct</FONT></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2>CDOObjectImpl.eResource doesn't =
delegate the=20
call to teh super class .. it should&nbsp; Right=20
?</FONT></DIV></BLOCKQUOTE>I'm not sure at the moment. I remember =
that the=20
interrelations of all these methods and the <BR>special requirements =
for=20
CDOObjectImpls are very subtle. I'd say if it doesn't deliver the=20
same<BR>results as legacy EObjects with an arbitrary Resource I =
should have=20
a look at it.<BR><FONT size=3D2><FONT=20
=
face=3DArial><BR>Cheers<BR>/Eike<BR><BR><BR></BLOCKQUOTE ></BLOCKQUOTE></F=
ONT></FONT></BODY></HTML>

------=_NextPart_000_000A_01C7F56B.6B45A2A0--
Re: [CDO][0.8.0] eResource [message #609700 is a reply to message #96513] Wed, 12 September 2007 15:46 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020102020702010503090102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Simon,

Comments inline...


Simon McDuff schrieb:
> Hi Eike,
>
> Can we use generated classes that inherit from CDOObjectImpl without
> CDOResource ?
This shall certainly work but I'm not sure if I already have a test case
for this.
So I can't guarantee at this moment if it's really free of bugs.
If you already have a test case and encounter problems, please file a
bug so that I don't forget to fix it.

> For our test case we would like to save them in a different resource
> (XMIResourceIMpl)
>
> ResourceImpl resource
>
> resource.getContent().add(eObject);
>
> eObject.eResource()
What do you want to express with the previous line?

> eObject.Resource equal null. ???
What do you want to express with the previous line?

> CDOObjectImpl.eSetDirectResource delegate the call to the super
> class... this is correct
> CDOObjectImpl.eResource doesn't delegate the call to teh super class
> .. it should Right ?
I'm not sure at the moment. I remember that the interrelations of all
these methods and the
special requirements for CDOObjectImpls are very subtle. I'd say if it
doesn't deliver the same
results as legacy EObjects with an arbitrary Resource I should have a
look at it.

Cheers
/Eike



--------------020102020702010503090102
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">
Hi Simon,<br>
<br>
Comments inline...<br>
<br>
<br>
Simon McDuff schrieb:
<blockquote cite="mid:fc8om6$afg$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.3157" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Hi Eike,</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Can we use generated classes that
inherit from CDOObjectImpl&nbsp;without CDOResource ?</font></div>
</blockquote>
This shall certainly work but I'm not sure if I already have a test
case for this.<br>
So I can't guarantee at this moment if it's really free of bugs.<br>
If you already have a test case and encounter problems, please file a
bug so that I don't forget to fix it.<br>
<br>
<blockquote cite="mid:fc8om6$afg$1@build.eclipse.org" type="cite">
<div><font face="Arial" size="2"> </font></div>
<div><font face="Arial" size="2">For our test case we would like to
save them in a different resource (XMIResourceIMpl)</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">ResourceImpl resource</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">resource.getContent().add(eObject);</font></div >
<div>&nbsp;</div>
<div><font face="Arial" size="2">eObject.eResource()</font></div>
</blockquote>
What do you want to express with the previous line?<br>
<br>
<blockquote cite="mid:fc8om6$afg$1@build.eclipse.org" type="cite">
<div><font face="Arial" size="2"> </font></div>
<div>&nbsp;<font face="Arial" size="2">eObject.Resource equal null. ???</font></div>
</blockquote>
What do you want to express with the previous line?<br>
<br>
<blockquote cite="mid:fc8om6$afg$1@build.eclipse.org" type="cite">
<div><font face="Arial" size="2">CDOObjectImpl.eSetDirectResource
delegate the call to the super class... this is correct</font></div>
<div><font face="Arial" size="2">CDOObjectImpl.eResource doesn't
delegate the call to teh super class .. it should&nbsp; Right ?</font></div>
</blockquote>
I'm not sure at the moment. I remember that the interrelations of all
these methods and the <br>
special requirements for CDOObjectImpls are very subtle. I'd say if it
doesn't deliver the same<br>
results as legacy EObjects with an arbitrary Resource I should have a
look at it.<br>
<font size="2"><font face="Arial"><br>
Cheers<br>
/Eike<br>
<br>
<br>
</font></font>
</body>
</html>

--------------020102020702010503090102--


Re: [CDO][0.8.0] eResource [message #609701 is a reply to message #96544] Wed, 12 September 2007 15:51 Go to previous message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_04DA_01C7F533.42FB6F60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


"Eike Stepper" <stepper@sympedia.de> wrote in message =
news:fc91jd$sp9$1@build.eclipse.org...
Hi Simon,

Comments inline...


Simon McDuff schrieb:=20
Hi Eike,

Can we use generated classes that inherit from CDOObjectImpl without =
CDOResource ?
This shall certainly work but I'm not sure if I already have a test =
case for this.
So I can't guarantee at this moment if it's really free of bugs.

I will send you a test case tonight ... really easy to reproduce.=20


If you already have a test case and encounter problems, please file a =
bug so that I don't forget to fix it.


For our test case we would like to save them in a different resource =
(XMIResourceIMpl)

ResourceImpl resource

resource.getContent().add(eObject);

eObject.eResource()
What do you want to express with the previous line?
This was the code to reproduce the problem.=20

eObject.Resource equal null. ???
What do you want to express with the previous line?
When I call eObject.eResource() , it returns me null. It is not =
suppose to because I attached it to the resource.


CDOObjectImpl.eSetDirectResource delegate the call to the super =
class... this is correct
CDOObjectImpl.eResource doesn't delegate the call to teh super class =
... it should Right ?
I'm not sure at the moment. I remember that the interrelations of all =
these methods and the=20
special requirements for CDOObjectImpls are very subtle. I'd say if it =
doesn't deliver the same
results as legacy EObjects with an arbitrary Resource I should have a =
look at it.

Cheers
/Eike



------=_NextPart_000_04DA_01C7F533.42FB6F60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Eike Stepper" &lt;<A=20
href=3D"mailto:stepper@sympedia.de">stepper@sympedia.de</A>&gt; wrote =
in message=20
<A=20
=
href=3D"news:fc91jd$sp9$1@build.eclipse.org">news:fc91jd$sp9$1@build.ecli=
pse.org</A>...</DIV>Hi=20
Simon,<BR><BR>Comments inline...<BR><BR><BR>Simon McDuff schrieb:=20
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>Hi Eike,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can we use generated classes that =
inherit from=20
CDOObjectImpl&nbsp;without CDOResource ?</FONT></DIV></BLOCKQUOTE>
<DIV>This shall certainly work but I'm not sure if I already have a =
test case=20
for this.<BR>So I can't guarantee at this moment if it's really free =
of=20
bugs.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>I will send you a test case =
tonight ...=20
really easy to reproduce.</STRONG> </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><FONT=20
face=3DArial size=3D2></FONT><BR>If you already have a test case and =
encounter=20
problems, please file a bug so that I don't forget to fix =
it.<BR><BR></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For our test case we would like to =
save them in=20
a different resource (XMIResourceIMpl)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ResourceImpl resource</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>resource.getContent().add(eObject);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>eObject.eResource()</FONT></DIV></BLOCKQUOTE>
<DIV>What do you want to express with the previous line?</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>This&nbsp;was the code to =
reproduce the=20
problem. </STRONG></FONT><BR></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2></FONT></DIV>
<DIV>&nbsp;<FONT face=3DArial size=3D2>eObject.Resource equal null.=20
???</FONT></DIV></BLOCKQUOTE>
<DIV>What do you want to express with the previous line?</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>When I call =
eObject.eResource()&nbsp;, it=20
returns me null. It is not suppose to because I attached it to the=20
resource.</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=3DArial size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>CDOObjectImpl.eSetDirectResource =
delegate the=20
call to the super class... this is correct</FONT></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2>CDOObjectImpl.eResource doesn't =
delegate the=20
call to teh super class .. it should&nbsp; Right=20
?</FONT></DIV></BLOCKQUOTE>I'm not sure at the moment. I remember that =
the=20
interrelations of all these methods and the <BR>special requirements =
for=20
CDOObjectImpls are very subtle. I'd say if it doesn't deliver the=20
same<BR>results as legacy EObjects with an arbitrary Resource I should =
have a=20
look at it.<BR><FONT size=3D2><FONT=20
face=3DArial><BR>Cheers<BR>/Eike<BR><BR><BR></BLOCKQUOTE ></FONT></FONT></=
BODY></HTML>

------=_NextPart_000_04DA_01C7F533.42FB6F60--
Re: [CDO][0.8.0] eResource [message #609703 is a reply to message #96559] Wed, 12 September 2007 22:33 Go to previous message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C7F56B.6B45A2A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D203165
"Simon McDuff" <smcduff@hotmail.com> a =E9crit dans le message de =
news: fc91u4$j4n$1@build.eclipse.org...

"Eike Stepper" <stepper@sympedia.de> wrote in message =
news:fc91jd$sp9$1@build.eclipse.org...
Hi Simon,

Comments inline...


Simon McDuff schrieb:=20
Hi Eike,

Can we use generated classes that inherit from CDOObjectImpl =
without CDOResource ?
This shall certainly work but I'm not sure if I already have a test =
case for this.
So I can't guarantee at this moment if it's really free of bugs.

I will send you a test case tonight ... really easy to reproduce.=20


If you already have a test case and encounter problems, please file =
a bug so that I don't forget to fix it.


For our test case we would like to save them in a different =
resource (XMIResourceIMpl)

ResourceImpl resource

resource.getContent().add(eObject);

eObject.eResource()
What do you want to express with the previous line?
This was the code to reproduce the problem.=20

eObject.Resource equal null. ???
What do you want to express with the previous line?
When I call eObject.eResource() , it returns me null. It is not =
suppose to because I attached it to the resource.


CDOObjectImpl.eSetDirectResource delegate the call to the super =
class... this is correct
CDOObjectImpl.eResource doesn't delegate the call to teh super =
class .. it should Right ?
I'm not sure at the moment. I remember that the interrelations of =
all these methods and the=20
special requirements for CDOObjectImpls are very subtle. I'd say if =
it doesn't deliver the same
results as legacy EObjects with an arbitrary Resource I should have =
a look at it.

Cheers
/Eike



------=_NextPart_000_000A_01C7F56B.6B45A2A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.6000.16525" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D203165">https://b=
ugs.eclipse.org/bugs/show_bug.cgi?id=3D203165</A></FONT></DIV >
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Simon McDuff" &lt;<A=20
href=3D"mailto:smcduff@hotmail.com">smcduff@hotmail.com</A>&gt; a =
=E9crit dans le=20
message de news: <A=20
=
href=3D"mailto:fc91u4$j4n$1@build.eclipse.org">fc91u4$j4n$1@build.eclipse=
..org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Eike Stepper" &lt;<A=20
href=3D"mailto:stepper@sympedia.de">stepper@sympedia.de</A>&gt; =
wrote in=20
message <A=20
=
href=3D"news:fc91jd$sp9$1@build.eclipse.org">news:fc91jd$sp9$1@build.ecli=
pse.org</A>...</DIV>Hi=20
Simon,<BR><BR>Comments inline...<BR><BR><BR>Simon McDuff schrieb:=20
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>Hi Eike,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can we use generated classes that =
inherit=20
from CDOObjectImpl&nbsp;without CDOResource =
?</FONT></DIV></BLOCKQUOTE>
<DIV>This shall certainly work but I'm not sure if I already have a =
test=20
case for this.<BR>So I can't guarantee at this moment if it's really =
free of=20
bugs.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>I will send you a test case =
tonight ...=20
really easy to reproduce.</STRONG> </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT><FONT=20
face=3DArial size=3D2></FONT><BR>If you already have a test case and =
encounter=20
problems, please file a bug so that I don't forget to fix =
it.<BR><BR></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>For our test case we would like =
to save them=20
in a different resource (XMIResourceIMpl)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ResourceImpl =
resource</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>resource.getContent().add(eObject);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>eObject.eResource()</FONT></DIV></BLOCKQUOTE>
<DIV>What do you want to express with the previous line?</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>This&nbsp;was the code to =
reproduce the=20
problem. </STRONG></FONT><BR></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2></FONT></DIV>
<DIV>&nbsp;<FONT face=3DArial size=3D2>eObject.Resource equal =
null.=20
???</FONT></DIV></BLOCKQUOTE>
<DIV>What do you want to express with the previous line?</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>When I call =
eObject.eResource()&nbsp;,=20
it returns me null. It is not suppose to because I attached it to =
the=20
resource.</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=3DArial =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>CDOObjectImpl.eSetDirectResource =
delegate the=20
call to the super class... this is correct</FONT></DIV>
<BLOCKQUOTE cite=3Dmid:fc8om6$afg$1@build.eclipse.org type=3D"cite">
<DIV><FONT face=3DArial size=3D2>CDOObjectImpl.eResource doesn't =
delegate the=20
call to teh super class .. it should&nbsp; Right=20
?</FONT></DIV></BLOCKQUOTE>I'm not sure at the moment. I remember =
that the=20
interrelations of all these methods and the <BR>special requirements =
for=20
CDOObjectImpls are very subtle. I'd say if it doesn't deliver the=20
same<BR>results as legacy EObjects with an arbitrary Resource I =
should have=20
a look at it.<BR><FONT size=3D2><FONT=20
=
face=3DArial><BR>Cheers<BR>/Eike<BR><BR><BR></BLOCKQUOTE ></BLOCKQUOTE></F=
ONT></FONT></BODY></HTML>

------=_NextPart_000_000A_01C7F56B.6B45A2A0--
Previous Topic:[Announce] Servus Component Proposal
Next Topic:[CDO][0.8.0] Accessing more directly the data
Goto Forum:
  


Current Time: Sat Apr 20 02:22:24 GMT 2024

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

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

Back to the top