Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » deleteElement when variables and operations have the same names
deleteElement when variables and operations have the same names [message #57888] Thu, 05 June 2008 16:51 Go to next message
Jonathan MUSSET is currently offline Jonathan MUSSETFriend
Messages: 43
Registered: July 2009
Member
Hi,
I'm using the EcoreEnvironment and I need to add some elements like
Variable and Operation.
I'm using the following code :

((EcoreEnvironment)helper.getOCL().getEnvironment()).addElem ent(newVariable.getName(),
newVariable,
true);

((EcoreEnvironment)helper.getOCL().getEnvironment()).defineO peration(owner,
name, type, params, constraint);

So, it is quite simple to register Variable and define a new operation,
but How can I delete my elements?
In my opinion, it is dangerous to call the deleteElement method
(Operations can have the same names)... Is there another solution?

helper.getOCL().getEnvironment().deleteElement(oldVariable.g etName());
helper.getOCL().getEnvironment().deleteElement(oldOperation. getName());
??? Is it the good solution to delete an operation?

Regards,

Jonathan
Re: deleteElement when variables and operations have the same names [message #57914 is a reply to message #57888] Thu, 05 June 2008 18:01 Go to previous messageGo to next message
Adolfo Sanchez-Barbudo Herrera is currently offline Adolfo Sanchez-Barbudo HerreraFriend
Messages: 260
Registered: July 2009
Senior Member
Hi Jonathan,

deleteElement doesn't remove operations from the environment, just
variables.

I'm not sure if you can "undefine" operations, at least the API doesn't
seem to allow it. I'm curious of knowing about the scenerio in which it
could be needed.

Cheers,
Adolfo.

Jonathan MUSSET escribió:
> Hi,
> I'm using the EcoreEnvironment and I need to add some elements like
> Variable and Operation.
> I'm using the following code :
>
> ((EcoreEnvironment)helper.getOCL().getEnvironment()).addElem ent(newVariable.getName(),
> newVariable,
> true);
>
> ((EcoreEnvironment)helper.getOCL().getEnvironment()).defineO peration(owner,
> name, type, params, constraint);
>
> So, it is quite simple to register Variable and define a new operation,
> but How can I delete my elements?
> In my opinion, it is dangerous to call the deleteElement method
> (Operations can have the same names)... Is there another solution?
>
> helper.getOCL().getEnvironment().deleteElement(oldVariable.g etName());
> helper.getOCL().getEnvironment().deleteElement(oldOperation. getName());
> ??? Is it the good solution to delete an operation?
>
> Regards,
>
> Jonathan
Re: deleteElement when variables and operations have the same names [message #57938 is a reply to message #57888] Thu, 05 June 2008 19:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-IEQJpEsE9bBlbcEgaTSc
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Jonathan,

To follow up Adolfo's very helpful answer with some information about
the API intent of the Environment::defineOperation method: this API is
intended to be used by the OCL parser in processing additional operation
definitions ("def expressions"). Also, specialized environment
implementations (subclassing, for example, the EcoreEnvironment) might
use it to add custom operations as described in the "Customizing the
Environment" topic in the Developer Guide. Otherwise, it isn't intended
to be used by clients.

Note that you can use the OCLHelper::define(...) API to create
additional operations using OCL, that are local to the current
environment.

As Adolfo indicated, there is currently no way to un-define an operation
except by disposing the environment and creating a new one. If you
would like to raise an enhancement request in bugzilla, we could
consider the use cases for a feature in the next release.

Cheers,

Christian

On Thu, 2008-06-05 at 18:51 +0200, Jonathan MUSSET wrote:

> Hi,
> I'm using the EcoreEnvironment and I need to add some elements like
> Variable and Operation.
> I'm using the following code :
>
> ((EcoreEnvironment)helper.getOCL().getEnvironment()).addElem ent(newVariable.getName(),
> newVariable,
> true);
>
> ((EcoreEnvironment)helper.getOCL().getEnvironment()).defineO peration(owner,
> name, type, params, constraint);
>
> So, it is quite simple to register Variable and define a new operation,
> but How can I delete my elements?
> In my opinion, it is dangerous to call the deleteElement method
> (Operations can have the same names)... Is there another solution?
>
> helper.getOCL().getEnvironment().deleteElement(oldVariable.g etName());
> helper.getOCL().getEnvironment().deleteElement(oldOperation. getName());
> ??? Is it the good solution to delete an operation?
>
> Regards,
>
> Jonathan

--=-IEQJpEsE9bBlbcEgaTSc
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.0">
</HEAD>
<BODY>
Hi, Jonathan,<BR>
<BR>
To follow up Adolfo's very helpful answer with some information about the API intent of the Environment::defineOperation method:&nbsp; this API is intended to be used by the OCL parser in processing additional operation definitions (&quot;def expressions&quot;).&nbsp; Also, specialized environment implementations (subclassing, for example, the EcoreEnvironment) might use it to add custom operations as described in the &quot;Customizing the Environment&quot; topic in the Developer Guide.&nbsp; Otherwise, it isn't intended to be used by clients.<BR>
<BR>
Note that you can use the OCLHelper::define(...) API to create additional operations using OCL, that are local to the current environment.<BR>
<BR>
As Adolfo indicated, there is currently no way to un-define an operation except by disposing the environment and creating a new one.&nbsp; If you would like to raise an enhancement request in bugzilla, we could consider the use cases for a feature in the next release.<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
On Thu, 2008-06-05 at 18:51 +0200, Jonathan MUSSET wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi,</FONT>
<FONT COLOR="#000000">I'm using the EcoreEnvironment and I need to add some elements like </FONT>
<FONT COLOR="#000000">Variable and Operation.</FONT>
<FONT COLOR="#000000">I'm using the following code :</FONT>

<FONT COLOR="#000000"> ((EcoreEnvironment)helper.getOCL().getEnvironment()).addElem ent(newVariable.getName(), </FONT>
<FONT COLOR="#000000">newVariable,</FONT>
<FONT COLOR="#000000"> true);</FONT>
<FONT COLOR="#000000"> </FONT>
<FONT COLOR="#000000"> ((EcoreEnvironment)helper.getOCL().getEnvironment()).defineO peration(owner, </FONT>
<FONT COLOR="#000000"> name, type, params, constraint);</FONT>
<FONT COLOR="#000000"> </FONT>
<FONT COLOR="#000000">So, it is quite simple to register Variable and define a new operation, </FONT>
<FONT COLOR="#000000">but How can I delete my elements?</FONT>
<FONT COLOR="#000000">In my opinion, it is dangerous to call the deleteElement method </FONT>
<FONT COLOR="#000000">(Operations can have the same names)... Is there another solution?</FONT>

<FONT COLOR="#000000"> helper.getOCL().getEnvironment().deleteElement(oldVariable.g etName()); </FONT>
<FONT COLOR="#000000"> helper.getOCL().getEnvironment().deleteElement(oldOperation. getName()); </FONT>
<FONT COLOR="#000000">??? Is it the good solution to delete an operation?</FONT>

<FONT COLOR="#000000">Regards,</FONT>

<FONT COLOR="#000000">Jonathan</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-IEQJpEsE9bBlbcEgaTSc--
Re: deleteElement when variables and operations have the same names [message #58237 is a reply to message #57938] Wed, 11 June 2008 11:34 Go to previous messageGo to next message
Jonathan MUSSET is currently offline Jonathan MUSSETFriend
Messages: 43
Registered: July 2009
Member
Thanks for your answers
It's OK for me. The bug number is Bug 236604.
Adolfo, I'm working on the MTL plugin and I have to define and un-define
an MTL/OCL helper, because the helper mustn't be accessible everywhere...
Cheers,

Jonathan


Christian W. Damus a écrit :
> Hi, Jonathan,
>
> To follow up Adolfo's very helpful answer with some information about
> the API intent of the Environment::defineOperation method: this API is
> intended to be used by the OCL parser in processing additional operation
> definitions ("def expressions"). Also, specialized environment
> implementations (subclassing, for example, the EcoreEnvironment) might
> use it to add custom operations as described in the "Customizing the
> Environment" topic in the Developer Guide. Otherwise, it isn't intended
> to be used by clients.
>
> Note that you can use the OCLHelper::define(...) API to create
> additional operations using OCL, that are local to the current environment.
>
> As Adolfo indicated, there is currently no way to un-define an operation
> except by disposing the environment and creating a new one. If you
> would like to raise an enhancement request in bugzilla, we could
> consider the use cases for a feature in the next release.
>
> Cheers,
>
> Christian
>
> On Thu, 2008-06-05 at 18:51 +0200, Jonathan MUSSET wrote:
>> Hi,
>> I'm using the EcoreEnvironment and I need to add some elements like
>> Variable and Operation.
>> I'm using the following code :
>>
>> ((EcoreEnvironment)helper.getOCL().getEnvironment()).addElem ent(newVariable.getName(),
>> newVariable,
>> true);
>>
>> ((EcoreEnvironment)helper.getOCL().getEnvironment()).defineO peration(owner,
>> name, type, params, constraint);
>>
>> So, it is quite simple to register Variable and define a new operation,
>> but How can I delete my elements?
>> In my opinion, it is dangerous to call the deleteElement method
>> (Operations can have the same names)... Is there another solution?
>>
>> helper.getOCL().getEnvironment().deleteElement(oldVariable.g etName());
>> helper.getOCL().getEnvironment().deleteElement(oldOperation. getName());
>> ??? Is it the good solution to delete an operation?
>>
>> Regards,
>>
>> Jonathan
Re: deleteElement when variables and operations have the same names [message #58337 is a reply to message #58237] Wed, 11 June 2008 15:11 Go to previous messageGo to next message
Adolfo Sanchez-Barbudo Herrera is currently offline Adolfo Sanchez-Barbudo HerreraFriend
Messages: 260
Registered: July 2009
Senior Member
Hi Jonnatan,

I would need more info to see if this alternative can help you...but,
Have you tried to create a nested Environment just in the moment where
you need to add the helper operation, so that you use the nested
environment in that scope (variables from parent environments should be
accessible). Once you don't need the operation anymore, you can go on
with your previous (parent) environment.

If your necessities are similar to the scoping problem in programming
languages, using scoped Environments should help you in your task.

Cheers,
Adolfo.


Jonathan MUSSET escribió:
> Thanks for your answers
> It's OK for me. The bug number is Bug 236604.
> Adolfo, I'm working on the MTL plugin and I have to define and un-define
> an MTL/OCL helper, because the helper mustn't be accessible everywhere...
> Cheers,
>
> Jonathan
>
>
> Christian W. Damus a écrit :
>> Hi, Jonathan,
>>
>> To follow up Adolfo's very helpful answer with some information about
>> the API intent of the Environment::defineOperation method: this API
>> is intended to be used by the OCL parser in processing additional
>> operation definitions ("def expressions"). Also, specialized
>> environment implementations (subclassing, for example, the
>> EcoreEnvironment) might use it to add custom operations as described
>> in the "Customizing the Environment" topic in the Developer Guide.
>> Otherwise, it isn't intended to be used by clients.
>>
>> Note that you can use the OCLHelper::define(...) API to create
>> additional operations using OCL, that are local to the current
>> environment.
>>
>> As Adolfo indicated, there is currently no way to un-define an
>> operation except by disposing the environment and creating a new one.
>> If you would like to raise an enhancement request in bugzilla, we
>> could consider the use cases for a feature in the next release.
>>
>> Cheers,
>>
>> Christian
>>
>> On Thu, 2008-06-05 at 18:51 +0200, Jonathan MUSSET wrote:
>>> Hi,
>>> I'm using the EcoreEnvironment and I need to add some elements like
>>> Variable and Operation.
>>> I'm using the following code :
>>>
>>> ((EcoreEnvironment)helper.getOCL().getEnvironment()).addElem ent(newVariable.getName(),
>>> newVariable,
>>> true);
>>>
>>> ((EcoreEnvironment)helper.getOCL().getEnvironment()).defineO peration(owner,
>>>
>>> name, type, params, constraint);
>>>
>>> So, it is quite simple to register Variable and define a new
>>> operation, but How can I delete my elements?
>>> In my opinion, it is dangerous to call the deleteElement method
>>> (Operations can have the same names)... Is there another solution?
>>>
>>> helper.getOCL().getEnvironment().deleteElement(oldVariable.g etName());
>>> helper.getOCL().getEnvironment().deleteElement(oldOperation. getName());
>>> ??? Is it the good solution to delete an operation?
>>>
>>> Regards,
>>>
>>> Jonathan
Re: deleteElement when variables and operations have the same names [message #58405 is a reply to message #58337] Wed, 11 June 2008 16:45 Go to previous messageGo to next message
Adolfo Sanchez-Barbudo Herrera is currently offline Adolfo Sanchez-Barbudo HerreraFriend
Messages: 260
Registered: July 2009
Senior Member
> using scoped Environments should help you in your task.

Sorry, I meant, nested Environments ;)

Cheers,
Adolfo.
Re: deleteElement when variables and operations have the same names [message #58574 is a reply to message #58337] Wed, 11 June 2008 22:31 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-A2XQD7CXSwq7xg8zb5PR
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi, Adolfo,

The problem with using nested environments is that the
AbstractEnvironment implementation "bubbles up" operation definitions to
the root environment. Perhaps a custom environment implementation could
prevent that, though ...

cW

On Wed, 2008-06-11 at 16:11 +0100, Adolfo S=C3=A1nchez-Barbudo Herrera wrot=
e:

> Hi Jonnatan,
>=20
> I would need more info to see if this alternative can help you...but,=20
> Have you tried to create a nested Environment just in the moment where=20
> you need to add the helper operation, so that you use the nested=20
> environment in that scope (variables from parent environments should be=20
> accessible). Once you don't need the operation anymore, you can go on=20
> with your previous (parent) environment.
>=20
> If your necessities are similar to the scoping problem in programming=20
> languages, using scoped Environments should help you in your task.
>=20
> Cheers,
> Adolfo.
>=20
>=20
> Jonathan MUSSET escribi=C3=B3:
> > Thanks for your answers
> > It's OK for me. The bug number is Bug 236604.
> > Adolfo, I'm working on the MTL plugin and I have to define and un-defin=
e=20
> > an MTL/OCL helper, because the helper mustn't be accessible everywhere.=
...
> > Cheers,
> >=20
> > Jonathan
> >=20
> >=20
> > Christian W. Damus a =C3=A9crit :
> >> Hi, Jonathan,
> >>
> >> To follow up Adolfo's very helpful answer with some information about=20
> >> the API intent of the Environment::defineOperation method: this API=20
> >> is intended to be used by the OCL parser in processing additional=20
> >> operation definitions ("def expressions"). Also, specialized=20
> >> environment implementations (subclassing, for example, the=20
> >> EcoreEnvironment) might use it to add custom operations as described=20
> >> in the "Customizing the Environment" topic in the Developer Guide. =20
> >> Otherwise, it isn't intended to be used by clients.
> >>
> >> Note that you can use the OCLHelper::define(...) API to create=20
> >> additional operations using OCL, that are local to the current=20
> >> environment.
> >>
> >> As Adolfo indicated, there is currently no way to un-define an=20
> >> operation except by disposing the environment and creating a new one. =
=20
> >> If you would like to raise an enhancement request in bugzilla, we=20
> >> could consider the use cases for a feature in the next release.
> >>
> >> Cheers,
> >>
> >> Christian
> >>
> >> On Thu, 2008-06-05 at 18:51 +0200, Jonathan MUSSET wrote:
> >>> Hi,
> >>> I'm using the EcoreEnvironment and I need to add some elements like=20
> >>> Variable and Operation.
> >>> I'm using the following code :
> >>>
> >>> ((EcoreEnvironment)helper.getOCL().getEnvironment()).addElem ent(newVa=
riable.getName(),=20
> >>> newVariable,
> >>> true);
> >>> =20
> >>> ((EcoreEnvironment)helper.getOCL().getEnvironment()).defineO peration(=
owner,=20
> >>>
> >>> name, type, params, constraint);
> >>> =20
> >>> So, it is quite simple to register Variable and define a new=20
> >>> operation, but How can I delete my elements?
> >>> In my opinion, it is dangerous to call the deleteElement method=20
> >>> (Operations can have the same names)... Is there another solution?
> >>>
> >>> helper.getOCL().getEnvironment().deleteElement(oldVariable.g etName())=
;
> >>> helper.getOCL().getEnvironment().deleteElement(oldOperation. getName()=
);=20
> >>> ??? Is it the good solution to delete an operation?
> >>>
> >>> Regards,
> >>>
> >>> Jonathan

--=-A2XQD7CXSwq7xg8zb5PR
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.0">
</HEAD>
<BODY>
Hi, Adolfo,<BR>
<BR>
The problem with using nested environments is that the AbstractEnvironment implementation &quot;bubbles up&quot; operation definitions to the root environment.&nbsp; Perhaps a custom environment implementation could prevent that, though ...<BR>
<BR>
cW<BR>
<BR>
On Wed, 2008-06-11 at 16:11 +0100, Adolfo S&#225;nchez-Barbudo Herrera wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi Jonnatan,</FONT>

<FONT COLOR="#000000">I would need more info to see if this alternative can help you...but, </FONT>
<FONT COLOR="#000000">Have you tried to create a nested Environment just in the moment where </FONT>
<FONT COLOR="#000000">you need to add the helper operation, so that you use the nested </FONT>
<FONT COLOR="#000000">environment in that scope (variables from parent environments should be </FONT>
<FONT COLOR="#000000">accessible). Once you don't need the operation anymore, you can go on </FONT>
<FONT COLOR="#000000">with your previous (parent) environment.</FONT>

<FONT COLOR="#000000">If your necessities are similar to the scoping problem in programming </FONT>
<FONT COLOR="#000000">languages, using scoped Environments should help you in your task.</FONT>

<FONT COLOR="#000000">Cheers,</FONT>
<FONT COLOR="#000000">Adolfo.</FONT>


<FONT COLOR="#000000">Jonathan MUSSET escribi&#243;:</FONT>
<FONT COLOR="#000000">&gt; Thanks for your answers</FONT>
<FONT COLOR="#000000">&gt; It's OK for me. The bug number is Bug 236604.</FONT>
<FONT COLOR="#000000">&gt; Adolfo, I'm working on the MTL plugin and I have to define and un-define </FONT>
<FONT COLOR="#000000">&gt; an MTL/OCL helper, because the helper mustn't be accessible everywhere...</FONT>
<FONT COLOR="#000000">&gt; Cheers,</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Jonathan</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Christian W. Damus a &#233;crit :</FONT>
<FONT COLOR="#000000">&gt;&gt; Hi, Jonathan,</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; To follow up Adolfo's very helpful answer with some information about </FONT>
<FONT COLOR="#000000">&gt;&gt; the API intent of the Environment::defineOperation method: this API </FONT>
<FONT COLOR="#000000">&gt;&gt; is intended to be used by the OCL parser in processing additional </FONT>
<FONT COLOR="#000000">&gt;&gt; operation definitions (&quot;def expressions&quot;). Also, specialized </FONT>
<FONT COLOR="#000000">&gt;&gt; environment implementations (subclassing, for example, the </FONT>
<FONT COLOR="#000000">&gt;&gt; EcoreEnvironment) might use it to add custom operations as described </FONT>
<FONT COLOR="#000000">&gt;&gt; in the &quot;Customizing the Environment&quot; topic in the Developer Guide. </FONT>
<FONT COLOR="#000000">&gt;&gt; Otherwise, it isn't intended to be used by clients.</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; Note that you can use the OCLHelper::define(...) API to create </FONT>
<FONT COLOR="#000000">&gt;&gt; additional operations using OCL, that are local to the current </FONT>
<FONT COLOR="#000000">&gt;&gt; environment.</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; As Adolfo indicated, there is currently no way to un-define an </FONT>
<FONT COLOR="#000000">&gt;&gt; operation except by disposing the environment and creating a new one. </FONT>
<FONT COLOR="#000000">&gt;&gt; If you would like to raise an enhancement request in bugzilla, we </FONT>
<FONT COLOR="#000000">&gt;&gt; could consider the use cases for a feature in the next release.</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; Cheers,</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; Christian</FONT>
<FONT COLOR="#000000">&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; On Thu, 2008-06-05 at 18:51 +0200, Jonathan MUSSET wrote:</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Hi,</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; I'm using the EcoreEnvironment and I need to add some elements like </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Variable and Operation.</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; I'm using the following code :</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; ((EcoreEnvironment)helper.getOCL().getEnvironment()).addElem ent(newVariable.getName(), </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; newVariable,</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; true);</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; ((EcoreEnvironment)helper.getOCL().getEnvironment()).defineO peration(owner, </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; name, type, params, constraint);</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; So, it is quite simple to register Variable and define a new </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; operation, but How can I delete my elements?</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; In my opinion, it is dangerous to call the deleteElement method </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; (Operations can have the same names)... Is there another solution?</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; helper.getOCL().getEnvironment().deleteElement(oldVariable.g etName()); </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; helper.getOCL().getEnvironment().deleteElement(oldOperation. getName()); </FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; ??? Is it the good solution to delete an operation?</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Regards,</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt;&gt; Jonathan</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-A2XQD7CXSwq7xg8zb5PR--
Previous Topic:how to detect cycle in OCL
Next Topic:query Instance specification
Goto Forum:
  


Current Time: Fri Apr 19 13:18:14 GMT 2024

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

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

Back to the top