Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » String attribute as a connection
String attribute as a connection [message #236007] Fri, 10 July 2009 13:49 Go to next message
Nikola Milikic is currently offline Nikola MilikicFriend
Messages: 10
Registered: July 2009
Junior Member
Hello everyone,

I would highly appreciate if someone could help me.

Thing I wanted to do is next:

I have 2 abstract classes A and B, and C and D extends them both. Since B
represents constraints, it has String attribute 'requires'.

I would like in the editor to be able to make a connection between two
instances of A's subclasses (C and D, or C and C'...) which would indicate
that C 'requires' D, in other words to fill C's attribute 'requires' with
value 'D', and vice versa, to fill D's attribute with value C.

It is a bit complicated because of this abstract classes, but I need to
have them because of some other dependencies.

My question is: is it possible to do something like this and does anyone
have any suggestion how to do it?

Thanks very much in advance at least for your time reading this.

Regards,
Nikola
Re: String attribute as a connection [message #236026 is a reply to message #236007] Fri, 10 July 2009 14:12 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Nikola,

Can you use a reference (instead of String "requires" attribute)? And ..
looks like you have to create common superclass for A and B.. (to let B reference
instances of this sulerclass or you can use A as a type of this reference).

-----------------
Alex Shatalin
Re: String attribute as a connection [message #236080 is a reply to message #236026] Mon, 13 July 2009 10:05 Go to previous message
Nikola Milikic is currently offline Nikola MilikicFriend
Messages: 10
Registered: July 2009
Junior Member
Alex, thank you very much for a quick response.

I know that it would be easier if those are references instead of String
attribute, but I didn't want to change the model, because some other stuff
are using it too. But it looks that I will need to do the modifications
after all.

Thanks again.

Nikola Milikic
Previous Topic:Lables with Different Icons
Next Topic:node containment as link
Goto Forum:
  


Current Time: Sat Apr 04 03:30:35 GMT 2020

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

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

Back to the top