Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Ecore: Upper bound not recognised?
Ecore: Upper bound not recognised? [message #424201] Mon, 20 October 2008 15:44 Go to next message
Morten MacFly is currently offline Morten MacFlyFriend
Messages: 69
Registered: July 2009
Member
Dear all,

I am having a very simple model where one of its features should appear
no more than 4 times. Thus I setup an upper bound accordingly in the
Ecore model. After creating the editor code I was hoping that it
recognises the limit in a way that the editor allows me to setup max. 4
children of this type. Hence it allows me to setup any number I want.

Am I asked to implement the required functionality or am I missing
something? (What's the "upper bound" for in the first place?!)

With best regards, Morten.
Re: Ecore: Upper bound not recognised? [message #424205 is a reply to message #424201] Mon, 20 October 2008 16:12 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
Morten,

Comments below.

Morten MacFly wrote:
> Dear all,
>
> I am having a very simple model where one of its features should appear
> no more than 4 times. Thus I setup an upper bound accordingly in the
> Ecore model. After creating the editor code I was hoping that it
> recognises the limit in a way that the editor allows me to setup max. 4
> children of this type. Hence it allows me to setup any number I want.
>
Only type constraints are enforced immediately. Multiplicity
constraints are validated on demand. I.e., if you invoke Validate... on
the root in the editor, it will tell you that you've violated a constraint.
> Am I asked to implement the required functionality or am I missing
> something? (What's the "upper bound" for in the first place?!)
>
> With best regards, Morten.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Ecore: Upper bound not recognised? [message #424232 is a reply to message #424205] Tue, 21 October 2008 09:12 Go to previous messageGo to next message
Morten MacFly is currently offline Morten MacFlyFriend
Messages: 69
Registered: July 2009
Member
Ed Merks wrote:
> Only type constraints are enforced immediately. Multiplicity
> constraints are validated on demand. I.e., if you invoke Validate... on
> the root in the editor, it will tell you that you've violated a constraint.
Thanks for the info. Good to know. :-)

BTW: This is by far (!) the best NG I am working with. You (EMF guys)
give an excellent immediate support. I don't know how you manage to do
all this - taken a limited time frame into account - but it is highly
appreciated.
Re: Ecore: Upper bound not recognised? [message #424233 is a reply to message #424232] Tue, 21 October 2008 09:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020208020206030705080502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Morten,

Thanks for the positive feedback. Eike and Simon do a great job with
CDO, Martin always has a solution to any Teneo issue, Christian
invariably has excellent details for Query, Validation, and Transaction
questions, and I try my best with the rest. I think one of the keys to
a really successful open source project, in addition to high quality
solutions to important problems, is showing a genuine interest in the
community's issues and being responsive to them.

Here's my process for answering questions quickly.

* Take a glance to see if Eike, Martin, or Christian are needed for
the topic.
* If not, hit reply.
* Type in person's name; try not to misspell, because it's rude.
* Add "Comments below".
* Start reading and whenever a thought jumps to mind, type it in.
* Upon getting to the end, hope the question has been answered.
* If not, ask lots of questions so the person asking the questions
has to answer mine instead.
* Rinse, lather, repeat.
* Avoid infinite loops.

Hey, I need to write a blog!

Cheers,
Ed


Morten MacFly wrote:
> Ed Merks wrote:
>
>> Only type constraints are enforced immediately. Multiplicity
>> constraints are validated on demand. I.e., if you invoke Validate... on
>> the root in the editor, it will tell you that you've violated a constraint.
>>
> Thanks for the info. Good to know. :-)
>
> BTW: This is by far (!) the best NG I am working with. You (EMF guys)
> give an excellent immediate support. I don't know how you manage to do
> all this - taken a limited time frame into account - but it is highly
> appreciated.
>

--------------020208020206030705080502
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">
Morten,<br>
<br>
Thanks for the positive feedback.&nbsp; Eike and Simon do a great job with
CDO, Martin always has a solution to any Teneo issue, Christian
invariably has excellent details for Query, Validation, and Transaction
questions, and I try my best with the rest.&nbsp; I think one of the keys to
a really successful open source project, in addition to high quality
solutions to important problems, is showing a genuine interest in the
community's issues and being responsive to them.<br>
<br>
Here's my process for answering questions quickly.<br>
<ul>
<li>Take a glance to see if Eike, Martin, or Christian are needed&nbsp;
for the topic.<br>
</li>
<li>If not, hit reply.&nbsp; </li>
<li>Type in person's name; try not to misspell, because it's rude.&nbsp; </li>
<li>Add "Comments below".&nbsp; </li>
<li>Start reading and whenever a thought jumps to mind, type it in.&nbsp; </li>
<li>Upon getting to the end, hope the question has been answered.&nbsp; </li>
<li>If not, ask lots of questions so the person asking the questions
has to answer mine instead.</li>
<li>Rinse, lather, repeat.</li>
<li>Avoid infinite loops.<br>
</li>
</ul>
Hey, I need to write a blog!<br>
<br>
Cheers,<br>
Ed<br>
<br>
<br>
Morten MacFly wrote:
<blockquote cite="mid:gdk6d1$8pe$1@build.eclipse.org" type="cite">
<pre wrap="">Ed Merks wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Only type constraints are enforced immediately. Multiplicity
constraints are validated on demand. I.e., if you invoke Validate... on
the root in the editor, it will tell you that you've violated a constraint.
</pre>
</blockquote>
<pre wrap=""><!---->Thanks for the info. Good to know. :-)

BTW: This is by far (!) the best NG I am working with. You (EMF guys)
give an excellent immediate support. I don't know how you manage to do
all this - taken a limited time frame into account - but it is highly
appreciated.
</pre>
</blockquote>
</body>
</html>

--------------020208020206030705080502--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Ecore: Upper bound not recognised? [message #424251 is a reply to message #424233] Tue, 21 October 2008 16:36 Go to previous messageGo to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
Ed, you should consider an EclipseCon talk on this subject. IMHO,
other Eclipse comitters could learn a lot from your customer service
skills.

On 2008-10-21 04:59:49 -0500, Ed Merks <Ed.Merks@gmail.com> said:

>
> Morten,
>
> Thanks for the positive feedback. Eike and Simon do a great job with
> CDO, Martin always has a solution to any Teneo issue, Christian
> invariably has excellent details for Query, Validation, and Transaction
> questions, and I try my best with the rest. I think one of the keys to
> a really successful open source project, in addition to high quality
> solutions to important problems, is showing a genuine interest in the
> community's issues and being responsive to them.
Re: Ecore: Upper bound not recognised? [message #424253 is a reply to message #424251] Tue, 21 October 2008 16:48 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
Bryan,

Chris and I did a talk last year about effective techniques for
community building. There are so many cool technical talks that it's
hard to draw in the people who most need to get the message...

I appreciate your sentiment a great deal though! You have "committer"
written all over you. :-P


Bryan Hunt wrote:
> Ed, you should consider an EclipseCon talk on this subject. IMHO,
> other Eclipse comitters could learn a lot from your customer service
> skills.
>
> On 2008-10-21 04:59:49 -0500, Ed Merks <Ed.Merks@gmail.com> said:
>
>>
>> Morten,
>>
>> Thanks for the positive feedback. Eike and Simon do a great job with
>> CDO, Martin always has a solution to any Teneo issue, Christian
>> invariably has excellent details for Query, Validation, and Transaction
>> questions, and I try my best with the rest. I think one of the keys to
>> a really successful open source project, in addition to high quality
>> solutions to important problems, is showing a genuine interest in the
>> community's issues and being responsive to them.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:copying a set of eobjects
Next Topic:Overlay icons for validation
Goto Forum:
  


Current Time: Thu Sep 19 21:25:50 GMT 2024

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

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

Back to the top