String attribute as a connection [message #236007] |
Fri, 10 July 2009 13:49  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03079 seconds