Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » OCL Question
OCL Question [message #449] Sat, 10 September 2005 07:06 Go to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Hi,

this thread started in GMF newsgroup and as Ed suggested, I copied it to this new newsgroup.

To sum it up, I'd like to use my own EPackage.Registry with the EcoreEnvironment.
Details of the problem are described below...

Cheers
/Eike



Vishy, Ed,

Thanks for your answers!
I should have been asking a bit more detailed, because I'm pretty sure
about EMF concepts including resource framework (I developed the CDOResourceImpl).

Regarding EMF-OCL I even digged into the implementation of

static public EPackage org.eclipse.emf.ocl.parser.EcoreEnvironment.findPackage(List packageNames)

There we can find a hard-coded

Map registry = EPackage.Registry.INSTANCE;
for (Iterator iter = registry.values().iterator(); iter.hasNext();) {
...

which even can not be overridden since the method is static ;-(
I have the feeling that some architecture work is still missing to achieve
a degree of customizability similar to that of EMF.

I should have been asking for when this might happen.

Cheers
/Eike

p.s. I'll copy this thread to EMFT newsgroup, too...



vramaswa@ca.ibm.com schrieb:
>
> Hi Eike,
> The resource set has its own local registry. The following is the
> javadoc on the resource set API.
> /**
> * Returns the registry used for looking up a package based namespace.
> * <p>
> * An implementation will typically provide a registry that delegates to
> * the {@link org.eclipse.emf.ecore.EPackage.Registry#INSTANCE global}
> package registry.
> * As a result, registrations made in this registry are <em>local</em>
> to this resource set,
> * i.e., they augment or override those of the global registry.
> * </p>
> * @return the registry used for looking up a package based namespace.
> */
> EPackage.Registry getPackageRegistry();
>
>
> Thanks
> Vishy


Hi,

Is there a possibility to use an EPackage.Registry other than the global one?

Cheers
/Eike
Re: OCL Question [message #458 is a reply to message #449] Mon, 12 September 2005 16:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

(likewise copied from the GMF newsgroup)

Hi, Eike,

I recently committed a refactoring of the OCL parser's environment
infrastructure that allows clients to provide their own Environment
implementations that look up package names and other names.

Have a look at the org.eclipse.emf.ocl.parser.EnvironmentFactory and the
org.eclipse.emf.ocl.helper.IOclHelper interfaces for details.

Of course, creating your own environment implementation isn't the greatest

because everybody would want resource-set-specific package lookup, not
just you. That should be supported by the default Ecore environment
implementation. The only trouble is, that currently the OCL parser knows
nothing about resource sets, so the creation of environments would need to

be (optionally) parameterized by a resource set. This would be worth
raising an enhancement for in Bugzilla (hint, hint).

Christian
Re: OCL Question [message #472 is a reply to message #458] Mon, 12 September 2005 17:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

hi christian,

as i understand the new code, it allows to specify a single package
for the EcoreEnvironment. is this considered to be a "starting"
package? what about the other packages of my registry, are they found
by following associations to referenced EClasses?

am i expected to provide a new EcoreEnvironment for each validation
in my model?

i'm also not sure about your comment on resource sets. ok, a resource set
has associated a local EPackage.Registry, but i think in the context of
an OCL environment only the package registry itself is of importance,
not the containing resource set. what do you think?

i'd like to open a bugzilla, but at the moment i could only explain
my problem. i need my package registry being used by the OCL parser/evaluator.
which is the "plus" of flexibility that you have in mind?

cheers
/eike



cdamus@ca.ibm.com schrieb:
> (likewise copied from the GMF newsgroup)
>
> Hi, Eike,
>
> I recently committed a refactoring of the OCL parser's environment
> infrastructure that allows clients to provide their own Environment
> implementations that look up package names and other names.
>
> Have a look at the org.eclipse.emf.ocl.parser.EnvironmentFactory and the
> org.eclipse.emf.ocl.helper.IOclHelper interfaces for details.
>
> Of course, creating your own environment implementation isn't the greatest
>
> because everybody would want resource-set-specific package lookup, not
> just you. That should be supported by the default Ecore environment
> implementation. The only trouble is, that currently the OCL parser knows
> nothing about resource sets, so the creation of environments would need to
>
> be (optionally) parameterized by a resource set. This would be worth
> raising an enhancement for in Bugzilla (hint, hint).
>
> Christian
>
Re: OCL Question [message #484 is a reply to message #472] Mon, 12 September 2005 19:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Eike,

I was sloppy in my response: the only interesting parameter to the
environment would be the package registry, as you say, regardless of
whether it came from a resource set or otherwise.

If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class, you
can override the "EPackage lookupPackage(List path)" method to fall back
to a registry of your choosing. The "default package" is, in a sense, a
"starting package". It represents the OCL's optional context package,
which is the package in which unqualified classifier names are expected to
be found and in which unqualified or partially qualified package names can
be found. The parser's implementation extends that a bit by trying to
find names in the super-package chain if they cannot be found in the
default package. The final fall-back is to look for an absolute package
path in the global registry. This is where you can can customize the
registry to use, in your subclass.

You should not need to create a new environment for each OCL expression
that you parse, especially if you always use the same resource set and its
same registry. You could create a custom EnvironmentFactory to create
your custom Environments, and use that with an IOclHelper, to let it
create the environments when needed. That would probably be more than you
really need, though. The EnvironmentFactory is more useful for
applications that need to dynamically map their metamodels to Ecore (such
as one might do for SQL or UML) where the environment is really accessing
a non-ecore metamodel.

Regarding the bugzilla, I think the statement in your last post is all
that is needed to make the problem plain. We just need to provide a basic
environment implementation that allows a client to plug in an optional
package registry (the default being the shared registry). No more pluses
than that. :-)

HTH,

Christian
Re: OCL Question [message #498 is a reply to message #484] Tue, 13 September 2005 05:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

hi christian,

i just tried to file the bugzilla as you proposed, but the EMFT
product is configured for Website component bugs only at the moment...

cheers
/eike




cdamus@ca.ibm.com schrieb:
> Hi, Eike,
>
> I was sloppy in my response: the only interesting parameter to the
> environment would be the package registry, as you say, regardless of
> whether it came from a resource set or otherwise.
>
> If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class, you
> can override the "EPackage lookupPackage(List path)" method to fall back
> to a registry of your choosing. The "default package" is, in a sense, a
> "starting package". It represents the OCL's optional context package,
> which is the package in which unqualified classifier names are expected to
> be found and in which unqualified or partially qualified package names can
> be found. The parser's implementation extends that a bit by trying to
> find names in the super-package chain if they cannot be found in the
> default package. The final fall-back is to look for an absolute package
> path in the global registry. This is where you can can customize the
> registry to use, in your subclass.
>
> You should not need to create a new environment for each OCL expression
> that you parse, especially if you always use the same resource set and its
> same registry. You could create a custom EnvironmentFactory to create
> your custom Environments, and use that with an IOclHelper, to let it
> create the environments when needed. That would probably be more than you
> really need, though. The EnvironmentFactory is more useful for
> applications that need to dynamically map their metamodels to Ecore (such
> as one might do for SQL or UML) where the environment is really accessing
> a non-ecore metamodel.
>
> Regarding the bugzilla, I think the statement in your last post is all
> that is needed to make the problem plain. We just need to provide a basic
> environment implementation that allows a client to plug in an optional
> package registry (the default being the shared registry). No more pluses
> than that. :-)
>
> HTH,
>
> Christian
Re: OCL Question [message #510 is a reply to message #498] Tue, 13 September 2005 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Eike,

Yes, we have no appropriate bugzilla components yet. Even the CVS
infrastructure for these components isn't set up quite right yet. :-(
I'll work at getting this improved as soon as possible.


Eike Stepper wrote:

> hi christian,
>
> i just tried to file the bugzilla as you proposed, but the EMFT
> product is configured for Website component bugs only at the moment...
>
> cheers
> /eike
>
>
>
>
> cdamus@ca.ibm.com schrieb:
>
>> Hi, Eike,
>>
>> I was sloppy in my response: the only interesting parameter to the
>> environment would be the package registry, as you say, regardless of
>> whether it came from a resource set or otherwise.
>>
>> If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class,
>> you can override the "EPackage lookupPackage(List path)" method to
>> fall back to a registry of your choosing. The "default package" is,
>> in a sense, a "starting package". It represents the OCL's optional
>> context package, which is the package in which unqualified classifier
>> names are expected to be found and in which unqualified or partially
>> qualified package names can be found. The parser's implementation
>> extends that a bit by trying to find names in the super-package chain
>> if they cannot be found in the default package. The final fall-back
>> is to look for an absolute package path in the global registry. This
>> is where you can can customize the registry to use, in your subclass.
>>
>> You should not need to create a new environment for each OCL
>> expression that you parse, especially if you always use the same
>> resource set and its same registry. You could create a custom
>> EnvironmentFactory to create your custom Environments, and use that
>> with an IOclHelper, to let it create the environments when needed.
>> That would probably be more than you really need, though. The
>> EnvironmentFactory is more useful for applications that need to
>> dynamically map their metamodels to Ecore (such as one might do for
>> SQL or UML) where the environment is really accessing a non-ecore
>> metamodel.
>>
>> Regarding the bugzilla, I think the statement in your last post is
>> all that is needed to make the problem plain. We just need to
>> provide a basic environment implementation that allows a client to
>> plug in an optional package registry (the default being the shared
>> registry). No more pluses than that. :-)
>>
>> HTH,
>>
>> Christian
>
Re: OCL Question [message #523 is a reply to message #510] Tue, 13 September 2005 11:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Ed Merks schrieb:
> Eike,
>
> Yes, we have no appropriate bugzilla components yet. Even the CVS
> infrastructure for these components isn't set up quite right yet. :-(
> I'll work at getting this improved as soon as possible.

Btw. did I get you right in that you have everything you need for CDO approval?

Cheers
/Eike
Re: OCL Question [message #536 is a reply to message #523] Tue, 13 September 2005 11:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Eike,

I'm asking that very same question, but yes I believe and hope that I
have all I need to set up your components in CVS. Just keep reminding
yourself that patience is a virtue; I know I remind myself often of
that, and yet I often don't feel so virtuous....


Eike Stepper wrote:

> Ed Merks schrieb:
>
>> Eike,
>>
>> Yes, we have no appropriate bugzilla components yet. Even the CVS
>> infrastructure for these components isn't set up quite right yet. :-(
>> I'll work at getting this improved as soon as possible.
>
>
> Btw. did I get you right in that you have everything you need for CDO
> approval?
>
> Cheers
> /Eike
Re: OCL Question [message #549 is a reply to message #498] Tue, 13 September 2005 12:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Eike,

For now, we've been accepting bugzillas in the GMF project for these
EMFT-bound components. I guess we'll be transferring them all over to
EMFT when it is available.

cW

Eike Stepper wrote:
> hi christian,
>
> i just tried to file the bugzilla as you proposed, but the EMFT
> product is configured for Website component bugs only at the moment...
>
> cheers
> /eike
>
>
>
>
> cdamus@ca.ibm.com schrieb:
>
>> Hi, Eike,
>>
>> I was sloppy in my response: the only interesting parameter to the
>> environment would be the package registry, as you say, regardless of
>> whether it came from a resource set or otherwise.
>>
>> If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class,
>> you can override the "EPackage lookupPackage(List path)" method to
>> fall back to a registry of your choosing. The "default package" is,
>> in a sense, a "starting package". It represents the OCL's optional
>> context package, which is the package in which unqualified classifier
>> names are expected to be found and in which unqualified or partially
>> qualified package names can be found. The parser's implementation
>> extends that a bit by trying to find names in the super-package chain
>> if they cannot be found in the default package. The final fall-back
>> is to look for an absolute package path in the global registry. This
>> is where you can can customize the registry to use, in your subclass.
>>
>> You should not need to create a new environment for each OCL
>> expression that you parse, especially if you always use the same
>> resource set and its same registry. You could create a custom
>> EnvironmentFactory to create your custom Environments, and use that
>> with an IOclHelper, to let it create the environments when needed.
>> That would probably be more than you really need, though. The
>> EnvironmentFactory is more useful for applications that need to
>> dynamically map their metamodels to Ecore (such as one might do for
>> SQL or UML) where the environment is really accessing a non-ecore
>> metamodel.
>>
>> Regarding the bugzilla, I think the statement in your last post is all
>> that is needed to make the problem plain. We just need to provide a
>> basic environment implementation that allows a client to plug in an
>> optional package registry (the default being the shared registry). No
>> more pluses than that. :-)
>>
>> HTH,
>>
>> Christian
Re: OCL Question [message #562 is a reply to message #549] Tue, 13 September 2005 15:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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

Christian/Eike,

We now have the bugzilla components set up in EMFT so we can handle the
bugzillas now:


Christian W. Damus wrote:

>
> Hi, Eike,
>
> For now, we've been accepting bugzillas in the GMF project for these
> EMFT-bound components. I guess we'll be transferring them all over to
> EMFT when it is available.
>
> cW
>
> Eike Stepper wrote:
>
>> hi christian,
>>
>> i just tried to file the bugzilla as you proposed, but the EMFT
>> product is configured for Website component bugs only at the moment...
>>
>> cheers
>> /eike
>>
>>
>>
>>
>> cdamus@ca.ibm.com schrieb:
>>
>>> Hi, Eike,
>>>
>>> I was sloppy in my response: the only interesting parameter to the
>>> environment would be the package registry, as you say, regardless of
>>> whether it came from a resource set or otherwise.
>>>
>>> If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class,
>>> you can override the "EPackage lookupPackage(List path)" method to
>>> fall back to a registry of your choosing. The "default package" is,
>>> in a sense, a "starting package". It represents the OCL's optional
>>> context package, which is the package in which unqualified
>>> classifier names are expected to be found and in which unqualified
>>> or partially qualified package names can be found. The parser's
>>> implementation extends that a bit by trying to find names in the
>>> super-package chain if they cannot be found in the default package.
>>> The final fall-back is to look for an absolute package path in the
>>> global registry. This is where you can can customize the registry
>>> to use, in your subclass.
>>>
>>> You should not need to create a new environment for each OCL
>>> expression that you parse, especially if you always use the same
>>> resource set and its same registry. You could create a custom
>>> EnvironmentFactory to create your custom Environments, and use that
>>> with an IOclHelper, to let it create the environments when needed.
>>> That would probably be more than you really need, though. The
>>> EnvironmentFactory is more useful for applications that need to
>>> dynamically map their metamodels to Ecore (such as one might do for
>>> SQL or UML) where the environment is really accessing a non-ecore
>>> metamodel.
>>>
>>> Regarding the bugzilla, I think the statement in your last post is
>>> all that is needed to make the problem plain. We just need to
>>> provide a basic environment implementation that allows a client to
>>> plug in an optional package registry (the default being the shared
>>> registry). No more pluses than that. :-)
>>>
>>> HTH,
>>>
>>> Christian
>>


--------------020101030304010200030602
Content-Type: multipart/related;
boundary="------------010005050701070502000908"


--------------010005050701070502000908
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">
Christian/Eike,<br>
<br>
We now have the bugzilla components set up in EMFT so we can handle the
bugzillas now:<br>
<blockquote><img src="cid:part1.05030107.09010702@ca.ibm.com" alt=""><br>
</blockquote>
Christian W. Damus wrote:
<blockquote cite="middg6i9s$dl8$1@news.eclipse.org" type="cite"><br>
Hi, Eike,
<br>
<br>
For now, we've been accepting bugzillas in the GMF project for these
EMFT-bound components.&nbsp; I guess we'll be transferring them all over to
EMFT when it is available.
<br>
<br>
cW
<br>
<br>
Eike Stepper wrote:
<br>
<blockquote type="cite">hi christian,
<br>
<br>
i just tried to file the bugzilla as you proposed, but the EMFT
<br>
product is configured for Website component bugs only at the moment...
<br>
<br>
cheers
<br>
/eike
<br>
<br>
<br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:cdamus@ca.ibm.com">cdamus@ca.ibm.com</a> schrieb:
<br>
<br>
<blockquote type="cite">Hi, Eike,
<br>
<br>
I was sloppy in my response:&nbsp; the only interesting parameter to the
environment would be the package registry, as you say, regardless of
whether it came from a resource set or otherwise.
<br>
<br>
If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class,
you can override the "EPackage lookupPackage(List path)" method to fall
back to a registry of your choosing.&nbsp; The "default package" is, in a
sense, a "starting package".&nbsp; It represents the OCL's optional context
package, which is the package in which unqualified classifier names are
expected to be found and in which unqualified or partially qualified
package names can be found.&nbsp; The parser's implementation extends that a
bit by trying to find names in the super-package chain if they cannot
be found in the default package.&nbsp; The final fall-back is to look for an
absolute package path in the global registry.&nbsp; This is where you can
can customize the registry to use, in your subclass.
<br>
<br>
You should not need to create a new environment for each OCL expression
that you parse, especially if you always use the same resource set and
its same registry.&nbsp; You could create a custom EnvironmentFactory to
create your custom Environments, and use that with an IOclHelper, to
let it create the environments when needed.&nbsp; That would probably be
more than you really need, though.&nbsp; The EnvironmentFactory is more
useful for applications that need to dynamically map their metamodels
to Ecore (such as one might do for SQL or UML) where the environment is
really accessing a non-ecore metamodel.
<br>
<br>
Regarding the bugzilla, I think the statement in your last post is all
that is needed to make the problem plain.&nbsp; We just need to provide a
basic environment implementation that allows a client to plug in an
optional package registry (the default being the shared registry).&nbsp; No
more pluses than that.&nbsp; :-)
<br>
<br>
HTH,
<br>
<br>
Christian
<br>
</blockquote>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------010005050701070502000908
Content-Type: image/jpeg;
name="moz-screenshot-4.jpg"
Content-Transfer-Encoding: base64
Content-ID: <part1.05030107.09010702@ca.ibm.com>
Content-Disposition: inline;
filename="moz-screenshot-4.jpg"

/9j/4AAQSkZJRgABAQIAJQAlAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL DBkSEw8UHRof
Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwL DBgNDRgyIRwh
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy MjIyMjL/wAAR
CAB+AOQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcI CQoL/8QAtRAA
AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS 0fAkM2JyggkK
FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1 dnd4eXqDhIWG
h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW 19jZ2uHi4+Tl
5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcI CQoL/8QAtREA
AgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMz UvAVYnLRChYk
NOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0 dXZ3eHl6goOE
hYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU 1dbX2Nna4uPk
5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigAooooAKKK838b6z f6J478N2r+LJ
9K0jVftX2kutqqQeVEpTa8kRxuY87ieuBjigD0iivM/CXxKtAlzZe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CQDjOPyH5U37J bf8APvF/3wKm
ooAh+yW3/PvF/wB8Cj7Jbf8APvF/3wKmooAh+yW3/PvF/wB8Cj7Jbf8APvF/ 3wKmooAh+yW3
/PvF/wB8Cj7Jbf8APvF/3wKmooAh+yW3/PvF/wB8Cj7Jbf8APvF/3wKmooAh +yW3/PvF/wB8
CpEjSJdsaKg64UYp1FABRRRQAUUUUAFFFFAH/9k=
--------------010005050701070502000908--

--------------020101030304010200030602--
Re: OCL Question [message #575 is a reply to message #562] Wed, 14 September 2005 05:26 Go to previous message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Ed, Christian,

I filed bugzilla http://bugs.eclipse.org/bugs/show_bug.cgi?id=109469 for this.

Cheers
/Eike



Ed Merks schrieb:
> Christian/Eike,
>
> We now have the bugzilla components set up in EMFT so we can handle the
> bugzillas now:
>
>
> Christian W. Damus wrote:
>
>>
>> Hi, Eike,
>>
>> For now, we've been accepting bugzillas in the GMF project for these
>> EMFT-bound components. I guess we'll be transferring them all over to
>> EMFT when it is available.
>>
>> cW
>>
>> Eike Stepper wrote:
>>
>>> hi christian,
>>>
>>> i just tried to file the bugzilla as you proposed, but the EMFT
>>> product is configured for Website component bugs only at the moment...
>>>
>>> cheers
>>> /eike
>>>
>>>
>>>
>>>
>>> cdamus@ca.ibm.com schrieb:
>>>
>>>> Hi, Eike,
>>>>
>>>> I was sloppy in my response: the only interesting parameter to the
>>>> environment would be the package registry, as you say, regardless of
>>>> whether it came from a resource set or otherwise.
>>>>
>>>> If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class,
>>>> you can override the "EPackage lookupPackage(List path)" method to
>>>> fall back to a registry of your choosing. The "default package" is,
>>>> in a sense, a "starting package". It represents the OCL's optional
>>>> context package, which is the package in which unqualified
>>>> classifier names are expected to be found and in which unqualified
>>>> or partially qualified package names can be found. The parser's
>>>> implementation extends that a bit by trying to find names in the
>>>> super-package chain if they cannot be found in the default package.
>>>> The final fall-back is to look for an absolute package path in the
>>>> global registry. This is where you can can customize the registry
>>>> to use, in your subclass.
>>>>
>>>> You should not need to create a new environment for each OCL
>>>> expression that you parse, especially if you always use the same
>>>> resource set and its same registry. You could create a custom
>>>> EnvironmentFactory to create your custom Environments, and use that
>>>> with an IOclHelper, to let it create the environments when needed.
>>>> That would probably be more than you really need, though. The
>>>> EnvironmentFactory is more useful for applications that need to
>>>> dynamically map their metamodels to Ecore (such as one might do for
>>>> SQL or UML) where the environment is really accessing a non-ecore
>>>> metamodel.
>>>>
>>>> Regarding the bugzilla, I think the statement in your last post is
>>>> all that is needed to make the problem plain. We just need to
>>>> provide a basic environment implementation that allows a client to
>>>> plug in an optional package registry (the default being the shared
>>>> registry). No more pluses than that. :-)
>>>>
>>>> HTH,
>>>>
>>>> Christian
>>>
>
Re: OCL Question [message #560837 is a reply to message #449] Mon, 12 September 2005 16:19 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

(likewise copied from the GMF newsgroup)

Hi, Eike,

I recently committed a refactoring of the OCL parser's environment
infrastructure that allows clients to provide their own Environment
implementations that look up package names and other names.

Have a look at the org.eclipse.emf.ocl.parser.EnvironmentFactory and the
org.eclipse.emf.ocl.helper.IOclHelper interfaces for details.

Of course, creating your own environment implementation isn't the greatest

because everybody would want resource-set-specific package lookup, not
just you. That should be supported by the default Ecore environment
implementation. The only trouble is, that currently the OCL parser knows
nothing about resource sets, so the creation of environments would need to

be (optionally) parameterized by a resource set. This would be worth
raising an enhancement for in Bugzilla (hint, hint).

Christian
Re: OCL Question [message #560850 is a reply to message #458] Mon, 12 September 2005 17:59 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6655
Registered: July 2009
Senior Member
hi christian,

as i understand the new code, it allows to specify a single package
for the EcoreEnvironment. is this considered to be a "starting"
package? what about the other packages of my registry, are they found
by following associations to referenced EClasses?

am i expected to provide a new EcoreEnvironment for each validation
in my model?

i'm also not sure about your comment on resource sets. ok, a resource set
has associated a local EPackage.Registry, but i think in the context of
an OCL environment only the package registry itself is of importance,
not the containing resource set. what do you think?

i'd like to open a bugzilla, but at the moment i could only explain
my problem. i need my package registry being used by the OCL parser/evaluator.
which is the "plus" of flexibility that you have in mind?

cheers
/eike



cdamus@ca.ibm.com schrieb:
> (likewise copied from the GMF newsgroup)
>
> Hi, Eike,
>
> I recently committed a refactoring of the OCL parser's environment
> infrastructure that allows clients to provide their own Environment
> implementations that look up package names and other names.
>
> Have a look at the org.eclipse.emf.ocl.parser.EnvironmentFactory and the
> org.eclipse.emf.ocl.helper.IOclHelper interfaces for details.
>
> Of course, creating your own environment implementation isn't the greatest
>
> because everybody would want resource-set-specific package lookup, not
> just you. That should be supported by the default Ecore environment
> implementation. The only trouble is, that currently the OCL parser knows
> nothing about resource sets, so the creation of environments would need to
>
> be (optionally) parameterized by a resource set. This would be worth
> raising an enhancement for in Bugzilla (hint, hint).
>
> Christian
>


Re: OCL Question [message #560863 is a reply to message #472] Mon, 12 September 2005 19:00 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Eike,

I was sloppy in my response: the only interesting parameter to the
environment would be the package registry, as you say, regardless of
whether it came from a resource set or otherwise.

If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class, you
can override the "EPackage lookupPackage(List path)" method to fall back
to a registry of your choosing. The "default package" is, in a sense, a
"starting package". It represents the OCL's optional context package,
which is the package in which unqualified classifier names are expected to
be found and in which unqualified or partially qualified package names can
be found. The parser's implementation extends that a bit by trying to
find names in the super-package chain if they cannot be found in the
default package. The final fall-back is to look for an absolute package
path in the global registry. This is where you can can customize the
registry to use, in your subclass.

You should not need to create a new environment for each OCL expression
that you parse, especially if you always use the same resource set and its
same registry. You could create a custom EnvironmentFactory to create
your custom Environments, and use that with an IOclHelper, to let it
create the environments when needed. That would probably be more than you
really need, though. The EnvironmentFactory is more useful for
applications that need to dynamically map their metamodels to Ecore (such
as one might do for SQL or UML) where the environment is really accessing
a non-ecore metamodel.

Regarding the bugzilla, I think the statement in your last post is all
that is needed to make the problem plain. We just need to provide a basic
environment implementation that allows a client to plug in an optional
package registry (the default being the shared registry). No more pluses
than that. :-)

HTH,

Christian
Re: OCL Question [message #560875 is a reply to message #484] Tue, 13 September 2005 05:45 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6655
Registered: July 2009
Senior Member
hi christian,

i just tried to file the bugzilla as you proposed, but the EMFT
product is configured for Website component bugs only at the moment...

cheers
/eike




cdamus@ca.ibm.com schrieb:
> Hi, Eike,
>
> I was sloppy in my response: the only interesting parameter to the
> environment would be the package registry, as you say, regardless of
> whether it came from a resource set or otherwise.
>
> If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class, you
> can override the "EPackage lookupPackage(List path)" method to fall back
> to a registry of your choosing. The "default package" is, in a sense, a
> "starting package". It represents the OCL's optional context package,
> which is the package in which unqualified classifier names are expected to
> be found and in which unqualified or partially qualified package names can
> be found. The parser's implementation extends that a bit by trying to
> find names in the super-package chain if they cannot be found in the
> default package. The final fall-back is to look for an absolute package
> path in the global registry. This is where you can can customize the
> registry to use, in your subclass.
>
> You should not need to create a new environment for each OCL expression
> that you parse, especially if you always use the same resource set and its
> same registry. You could create a custom EnvironmentFactory to create
> your custom Environments, and use that with an IOclHelper, to let it
> create the environments when needed. That would probably be more than you
> really need, though. The EnvironmentFactory is more useful for
> applications that need to dynamically map their metamodels to Ecore (such
> as one might do for SQL or UML) where the environment is really accessing
> a non-ecore metamodel.
>
> Regarding the bugzilla, I think the statement in your last post is all
> that is needed to make the problem plain. We just need to provide a basic
> environment implementation that allows a client to plug in an optional
> package registry (the default being the shared registry). No more pluses
> than that. :-)
>
> HTH,
>
> Christian


Re: OCL Question [message #560889 is a reply to message #498] Tue, 13 September 2005 11:21 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32561
Registered: July 2009
Senior Member
Eike,

Yes, we have no appropriate bugzilla components yet. Even the CVS
infrastructure for these components isn't set up quite right yet. :-(
I'll work at getting this improved as soon as possible.


Eike Stepper wrote:

> hi christian,
>
> i just tried to file the bugzilla as you proposed, but the EMFT
> product is configured for Website component bugs only at the moment...
>
> cheers
> /eike
>
>
>
>
> cdamus@ca.ibm.com schrieb:
>
>> Hi, Eike,
>>
>> I was sloppy in my response: the only interesting parameter to the
>> environment would be the package registry, as you say, regardless of
>> whether it came from a resource set or otherwise.
>>
>> If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class,
>> you can override the "EPackage lookupPackage(List path)" method to
>> fall back to a registry of your choosing. The "default package" is,
>> in a sense, a "starting package". It represents the OCL's optional
>> context package, which is the package in which unqualified classifier
>> names are expected to be found and in which unqualified or partially
>> qualified package names can be found. The parser's implementation
>> extends that a bit by trying to find names in the super-package chain
>> if they cannot be found in the default package. The final fall-back
>> is to look for an absolute package path in the global registry. This
>> is where you can can customize the registry to use, in your subclass.
>>
>> You should not need to create a new environment for each OCL
>> expression that you parse, especially if you always use the same
>> resource set and its same registry. You could create a custom
>> EnvironmentFactory to create your custom Environments, and use that
>> with an IOclHelper, to let it create the environments when needed.
>> That would probably be more than you really need, though. The
>> EnvironmentFactory is more useful for applications that need to
>> dynamically map their metamodels to Ecore (such as one might do for
>> SQL or UML) where the environment is really accessing a non-ecore
>> metamodel.
>>
>> Regarding the bugzilla, I think the statement in your last post is
>> all that is needed to make the problem plain. We just need to
>> provide a basic environment implementation that allows a client to
>> plug in an optional package registry (the default being the shared
>> registry). No more pluses than that. :-)
>>
>> HTH,
>>
>> Christian
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: OCL Question [message #560902 is a reply to message #510] Tue, 13 September 2005 11:26 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6655
Registered: July 2009
Senior Member
Ed Merks schrieb:
> Eike,
>
> Yes, we have no appropriate bugzilla components yet. Even the CVS
> infrastructure for these components isn't set up quite right yet. :-(
> I'll work at getting this improved as soon as possible.

Btw. did I get you right in that you have everything you need for CDO approval?

Cheers
/Eike


Re: OCL Question [message #560915 is a reply to message #523] Tue, 13 September 2005 11:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32561
Registered: July 2009
Senior Member
Eike,

I'm asking that very same question, but yes I believe and hope that I
have all I need to set up your components in CVS. Just keep reminding
yourself that patience is a virtue; I know I remind myself often of
that, and yet I often don't feel so virtuous....


Eike Stepper wrote:

> Ed Merks schrieb:
>
>> Eike,
>>
>> Yes, we have no appropriate bugzilla components yet. Even the CVS
>> infrastructure for these components isn't set up quite right yet. :-(
>> I'll work at getting this improved as soon as possible.
>
>
> Btw. did I get you right in that you have everything you need for CDO
> approval?
>
> Cheers
> /Eike


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: OCL Question [message #560928 is a reply to message #498] Tue, 13 September 2005 12:57 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Eike,

For now, we've been accepting bugzillas in the GMF project for these
EMFT-bound components. I guess we'll be transferring them all over to
EMFT when it is available.

cW

Eike Stepper wrote:
> hi christian,
>
> i just tried to file the bugzilla as you proposed, but the EMFT
> product is configured for Website component bugs only at the moment...
>
> cheers
> /eike
>
>
>
>
> cdamus@ca.ibm.com schrieb:
>
>> Hi, Eike,
>>
>> I was sloppy in my response: the only interesting parameter to the
>> environment would be the package registry, as you say, regardless of
>> whether it came from a resource set or otherwise.
>>
>> If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class,
>> you can override the "EPackage lookupPackage(List path)" method to
>> fall back to a registry of your choosing. The "default package" is,
>> in a sense, a "starting package". It represents the OCL's optional
>> context package, which is the package in which unqualified classifier
>> names are expected to be found and in which unqualified or partially
>> qualified package names can be found. The parser's implementation
>> extends that a bit by trying to find names in the super-package chain
>> if they cannot be found in the default package. The final fall-back
>> is to look for an absolute package path in the global registry. This
>> is where you can can customize the registry to use, in your subclass.
>>
>> You should not need to create a new environment for each OCL
>> expression that you parse, especially if you always use the same
>> resource set and its same registry. You could create a custom
>> EnvironmentFactory to create your custom Environments, and use that
>> with an IOclHelper, to let it create the environments when needed.
>> That would probably be more than you really need, though. The
>> EnvironmentFactory is more useful for applications that need to
>> dynamically map their metamodels to Ecore (such as one might do for
>> SQL or UML) where the environment is really accessing a non-ecore
>> metamodel.
>>
>> Regarding the bugzilla, I think the statement in your last post is all
>> that is needed to make the problem plain. We just need to provide a
>> basic environment implementation that allows a client to plug in an
>> optional package registry (the default being the shared registry). No
>> more pluses than that. :-)
>>
>> HTH,
>>
>> Christian
Re: OCL Question [message #560940 is a reply to message #549] Tue, 13 September 2005 15:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32561
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020101030304010200030602
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Christian/Eike,

We now have the bugzilla components set up in EMFT so we can handle the
bugzillas now:


Christian W. Damus wrote:

>
> Hi, Eike,
>
> For now, we've been accepting bugzillas in the GMF project for these
> EMFT-bound components. I guess we'll be transferring them all over to
> EMFT when it is available.
>
> cW
>
> Eike Stepper wrote:
>
>> hi christian,
>>
>> i just tried to file the bugzilla as you proposed, but the EMFT
>> product is configured for Website component bugs only at the moment...
>>
>> cheers
>> /eike
>>
>>
>>
>>
>> cdamus@ca.ibm.com schrieb:
>>
>>> Hi, Eike,
>>>
>>> I was sloppy in my response: the only interesting parameter to the
>>> environment would be the package registry, as you say, regardless of
>>> whether it came from a resource set or otherwise.
>>>
>>> If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class,
>>> you can override the "EPackage lookupPackage(List path)" method to
>>> fall back to a registry of your choosing. The "default package" is,
>>> in a sense, a "starting package". It represents the OCL's optional
>>> context package, which is the package in which unqualified
>>> classifier names are expected to be found and in which unqualified
>>> or partially qualified package names can be found. The parser's
>>> implementation extends that a bit by trying to find names in the
>>> super-package chain if they cannot be found in the default package.
>>> The final fall-back is to look for an absolute package path in the
>>> global registry. This is where you can can customize the registry
>>> to use, in your subclass.
>>>
>>> You should not need to create a new environment for each OCL
>>> expression that you parse, especially if you always use the same
>>> resource set and its same registry. You could create a custom
>>> EnvironmentFactory to create your custom Environments, and use that
>>> with an IOclHelper, to let it create the environments when needed.
>>> That would probably be more than you really need, though. The
>>> EnvironmentFactory is more useful for applications that need to
>>> dynamically map their metamodels to Ecore (such as one might do for
>>> SQL or UML) where the environment is really accessing a non-ecore
>>> metamodel.
>>>
>>> Regarding the bugzilla, I think the statement in your last post is
>>> all that is needed to make the problem plain. We just need to
>>> provide a basic environment implementation that allows a client to
>>> plug in an optional package registry (the default being the shared
>>> registry). No more pluses than that. :-)
>>>
>>> HTH,
>>>
>>> Christian
>>


--------------020101030304010200030602
Content-Type: multipart/related;
boundary="------------010005050701070502000908"


--------------010005050701070502000908
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">
Christian/Eike,<br>
<br>
We now have the bugzilla components set up in EMFT so we can handle the
bugzillas now:<br>
<blockquote><img src="cid:part1.05030107.09010702@ca.ibm.com" alt=""><br>
</blockquote>
Christian W. Damus wrote:
<blockquote cite="middg6i9s$dl8$1@news.eclipse.org" type="cite"><br>
Hi, Eike,
<br>
<br>
For now, we've been accepting bugzillas in the GMF project for these
EMFT-bound components.&nbsp; I guess we'll be transferring them all over to
EMFT when it is available.
<br>
<br>
cW
<br>
<br>
Eike Stepper wrote:
<br>
<blockquote type="cite">hi christian,
<br>
<br>
i just tried to file the bugzilla as you proposed, but the EMFT
<br>
product is configured for Website component bugs only at the moment...
<br>
<br>
cheers
<br>
/eike
<br>
<br>
<br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:cdamus@ca.ibm.com">cdamus@ca.ibm.com</a> schrieb:
<br>
<br>
<blockquote type="cite">Hi, Eike,
<br>
<br>
I was sloppy in my response:&nbsp; the only interesting parameter to the
environment would be the package registry, as you say, regardless of
whether it came from a resource set or otherwise.
<br>
<br>
If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class,
you can override the "EPackage lookupPackage(List path)" method to fall
back to a registry of your choosing.&nbsp; The "default package" is, in a
sense, a "starting package".&nbsp; It represents the OCL's optional context
package, which is the package in which unqualified classifier names are
expected to be found and in which unqualified or partially qualified
package names can be found.&nbsp; The parser's implementation extends that a
bit by trying to find names in the super-package chain if they cannot
be found in the default package.&nbsp; The final fall-back is to look for an
absolute package path in the global registry.&nbsp; This is where you can
can customize the registry to use, in your subclass.
<br>
<br>
You should not need to create a new environment for each OCL expression
that you parse, especially if you always use the same resource set and
its same registry.&nbsp; You could create a custom EnvironmentFactory to
create your custom Environments, and use that with an IOclHelper, to
let it create the environments when needed.&nbsp; That would probably be
more than you really need, though.&nbsp; The EnvironmentFactory is more
useful for applications that need to dynamically map their metamodels
to Ecore (such as one might do for SQL or UML) where the environment is
really accessing a non-ecore metamodel.
<br>
<br>
Regarding the bugzilla, I think the statement in your last post is all
that is needed to make the problem plain.&nbsp; We just need to provide a
basic environment implementation that allows a client to plug in an
optional package registry (the default being the shared registry).&nbsp; No
more pluses than that.&nbsp; :-)
<br>
<br>
HTH,
<br>
<br>
Christian
<br>
</blockquote>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------010005050701070502000908
Content-Type: image/jpeg;
name="moz-screenshot-4.jpg"
Content-Transfer-Encoding: base64
Content-ID: <part1.05030107.09010702@ca.ibm.com>
Content-Disposition: inline;
filename="moz-screenshot-4.jpg"

/9j/4AAQSkZJRgABAQIAJQAlAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL DBkSEw8UHRof
Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwL DBgNDRgyIRwh
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy MjIyMjL/wAAR
CAB+AOQDASIAAhEBAxEB/8Q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8paNG+bJYkqCvNdJpepQ6tYLdwrIgLvG8cgAaORH KOhwSMqysuQS
DjIJGDXL6j8P4bwxsH024MFxdywR6ppwu4lW5kWWTK71y4kB2sCMIxUhj81d JomlpoujwWEY
gCx7iRb26wRgsxYhI14Vck4HJx1LHLEA0KwtW/1p/wCuh/8AQUrdrjPEfiXR dO1F7O71GGK4
RtzRk5KgquM46dKT2GiSl+G3/InR/wDXzcf+jWrC/wCEx8Pf9BWD9f8ACtz4 aMr+DImUgqbm
cgg8EeY1KIM6+iiiqEFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQ By+v/wDI7eEf
+ut1/wCiGrqK5fX/APkdvCP/AF1uv/RDV1FABRRRQAUUUUAFFFFABXNeJNTt 9FtbnULr5beI
lpXEBlKqFTnABOBkk8cDJPArpa4zxH4l0XTtRezu9RhiuEbc0ZOSoKrjOOnS kxozNB8d6L4n
nmh0e7W6aFQ0hFiyKoJwMsyAZPOBnJwfQ1tfDhmfwiruxZmurgkk5JPmtXJ6 XrXg3RbVrbTL
mytYHkaVkiUgFmOSen4D0AAGAAK6n4aMr+DImUgqbmcgg8EeY1JAzr6KKKoQ UUUUAFFFFABR
RRQAUUUUAFFFFABRRRQAUUUUAFFFFAEclvDM6vLDG7KCFLKCQDjOPyH5U37J bf8APvF/3wKm
ooAh+yW3/PvF/wB8Cj7Jbf8APvF/3wKmooAh+yW3/PvF/wB8Cj7Jbf8APvF/ 3wKmooAh+yW3
/PvF/wB8Cj7Jbf8APvF/3wKmooAh+yW3/PvF/wB8Cj7Jbf8APvF/3wKmooAh +yW3/PvF/wB8
CpEjSJdsaKg64UYp1FABRRRQAUUUUAFFFFAH/9k=
--------------010005050701070502000908--

--------------020101030304010200030602--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: OCL Question [message #560953 is a reply to message #562] Wed, 14 September 2005 05:26 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6655
Registered: July 2009
Senior Member
Ed, Christian,

I filed bugzilla http://bugs.eclipse.org/bugs/show_bug.cgi?id=109469 for this.

Cheers
/Eike



Ed Merks schrieb:
> Christian/Eike,
>
> We now have the bugzilla components set up in EMFT so we can handle the
> bugzillas now:
>
>
> Christian W. Damus wrote:
>
>>
>> Hi, Eike,
>>
>> For now, we've been accepting bugzillas in the GMF project for these
>> EMFT-bound components. I guess we'll be transferring them all over to
>> EMFT when it is available.
>>
>> cW
>>
>> Eike Stepper wrote:
>>
>>> hi christian,
>>>
>>> i just tried to file the bugzilla as you proposed, but the EMFT
>>> product is configured for Website component bugs only at the moment...
>>>
>>> cheers
>>> /eike
>>>
>>>
>>>
>>>
>>> cdamus@ca.ibm.com schrieb:
>>>
>>>> Hi, Eike,
>>>>
>>>> I was sloppy in my response: the only interesting parameter to the
>>>> environment would be the package registry, as you say, regardless of
>>>> whether it came from a resource set or otherwise.
>>>>
>>>> If you extend the org.eclipse.emf.ocl.parser.EcoreEnvironment class,
>>>> you can override the "EPackage lookupPackage(List path)" method to
>>>> fall back to a registry of your choosing. The "default package" is,
>>>> in a sense, a "starting package". It represents the OCL's optional
>>>> context package, which is the package in which unqualified
>>>> classifier names are expected to be found and in which unqualified
>>>> or partially qualified package names can be found. The parser's
>>>> implementation extends that a bit by trying to find names in the
>>>> super-package chain if they cannot be found in the default package.
>>>> The final fall-back is to look for an absolute package path in the
>>>> global registry. This is where you can can customize the registry
>>>> to use, in your subclass.
>>>>
>>>> You should not need to create a new environment for each OCL
>>>> expression that you parse, especially if you always use the same
>>>> resource set and its same registry. You could create a custom
>>>> EnvironmentFactory to create your custom Environments, and use that
>>>> with an IOclHelper, to let it create the environments when needed.
>>>> That would probably be more than you really need, though. The
>>>> EnvironmentFactory is more useful for applications that need to
>>>> dynamically map their metamodels to Ecore (such as one might do for
>>>> SQL or UML) where the environment is really accessing a non-ecore
>>>> metamodel.
>>>>
>>>> Regarding the bugzilla, I think the statement in your last post is
>>>> all that is needed to make the problem plain. We just need to
>>>> provide a basic environment implementation that allows a client to
>>>> plug in an optional package registry (the default being the shared
>>>> registry). No more pluses than that. :-)
>>>>
>>>> HTH,
>>>>
>>>> Christian
>>>
>


Previous Topic:OCL Question
Next Topic:Question on persistence of Enumeration data types using CDO
Goto Forum:
  


Current Time: Sun Nov 27 10:09:49 GMT 2022

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

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

Back to the top