EuGENia link attributes [message #21991] |
Fri, 10 July 2009 20:05  |
Eclipse User |
|
|
|
Hi there,
I'm using EuGENia to help with a diagram editor of mine, which creates
components including GMF links. I can specify labels for these links using
gmf annotations such as, @gmf.link(... label="name"). I'm now wondering
whether there is an easy way to go abouts adding labels to the ends of the
link (e.g., as you might have when defining association multiplicities in
a standard UML editor)?
All the best,
Edd
|
|
|
|
|
|
|
|
Re: EuGENia link attributes [message #570485 is a reply to message #21991] |
Sat, 11 July 2009 17:13  |
Eclipse User |
|
|
|
Hi Edd,
This is not supported by EuGENia at the moment but I'll have a look to
see how it could be. Does your metamodel like this?
class Class {
}
class AssociationEnd {
attr String name;
ref Class type;
}
class Association {
val AssociationEnd[2] ends;
}
or like this?
class Class {
}
class Association {
val Class[2] ends;
}
Cheers,
Dimitris
Edward Turner wrote:
> Hi there,
>
> I'm using EuGENia to help with a diagram editor of mine, which creates
> components including GMF links. I can specify labels for these links
> using gmf annotations such as, @gmf.link(... label="name"). I'm now
> wondering whether there is an easy way to go abouts adding labels to the
> ends of the link (e.g., as you might have when defining association
> multiplicities in a standard UML editor)?
>
> All the best,
>
> Edd
>
|
|
|
Re: EuGENia link attributes [message #570815 is a reply to message #22080] |
Tue, 14 July 2009 08:39  |
Eclipse User |
|
|
|
Dimitris Kolovos wrote:
It is more like the latter, but with 'ref's instead of 'val's -- so more
than one association can comprise the same class:
class Association {
...
ref Class xEnd;
ref Class yEnd;
}
> Cheers,
> Dimitris
Ta,
Edd
|
|
|
Re: EuGENia link attributes [message #570924 is a reply to message #22866] |
Tue, 14 July 2009 12:29  |
Eclipse User |
|
|
|
Hi Edd,
Thanks. I'll have a look at this shortly and get back to you.
Cheers,
Dimitris
Edward Turner wrote:
> Dimitris Kolovos wrote:
>
> It is more like the latter, but with 'ref's instead of 'val's -- so more
> than one association can comprise the same class:
>
> class Association {
> ...
> ref Class xEnd;
> ref Class yEnd;
> }
>
>
>> Cheers,
>> Dimitris
> Ta,
>
> Edd
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03956 seconds