|
Re: implement constaints [message #198222 is a reply to message #198214] |
Tue, 22 July 2008 07:24 |
Eclipse User |
|
|
|
Originally posted by: lifesting.gmail.com
Ye Liu wrote:
> Hello,
> I have one question: There is one abstract class Obj which have
> bidirectional relations with another class Chan.Let's call the relations
> [Obj] inputs<----->outgoing[Chan].I want the multipilicity of the
> relations varies according to different subclasses of Obj.E.g subclass
> Net may have only one outgoing,subclass Gather may have the same number
> of outgoing as Rate(int) which is an attribute of Gather.How should I
> set these constrictions?Is it available to add constraints in GMF files
> definitions?
>
>
> Many thanks!
>
> Ye Liu
>
you can use OCL, Ecore Editor contains a graceful example to define
constraints for Connections like generalization, association and
aggregation.
|
|
|
|
Re: implement constaints [message #198381 is a reply to message #198259] |
Tue, 22 July 2008 14:13 |
Eclipse User |
|
|
|
Originally posted by: lifesting.gmail.com
Ye Liu wrote:
> Hi David,
> Can you tell me the link of this example?
>
>
>
>
look at your Plug-ins view, is there a plugin with id
org.eclipse.gmf.ecore.editor? if it exists you can import it as source
project or you need install GMF SDK.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04616 seconds