How to create a "details details binding" [message #916032] |
Tue, 18 September 2012 12:40 |
Lars Briem Messages: 22 Registered: June 2011 |
Junior Member |
|
|
Hello,
at my current project I develop an editor for an EMF model which is already in use and can not be changed to fit the needs of an editor better.
Some of the model classes look the following ones:
public class DummyA ... {
private DummyB dummyB;
private String stringA;
...
}
public class DummyB ... {
private DummyC dummyC;
private String stringB;
...
}
public class DummyC ... {
private String stringC;
...
}
dummyB and dummyC can be null.
To make it easier for the user to edit stringA, stringB and stringC, I want to show textfields for all strings on one page.
For stringA this is not a problem because I can create a textfield and bind it to stringA. If dummyB and dummyC are not null I can use FeaturePaths to bind stringB and stringC which also works correct. But how can I bind stringB and stringC to textfields if dummyB or dummyC do not exist?
Is it possible to bind stringC to a textfield and let the databinding create the object on the path to stringC if they do not exist?
Best regards,
Lars
|
|
|
Powered by
FUDForum. Page generated in 0.02963 seconds