Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to create a "details details binding"
How to create a "details details binding" [message #916032] Tue, 18 September 2012 12:40
Lars Briem is currently offline Lars BriemFriend
Messages: 20
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
Previous Topic:[CDO] Reducing the debug trace on server and client
Next Topic:[CDO] Bug in error handling causes misleading LegacyModeNotEnabledException
Goto Forum:
  


Current Time: Fri Dec 19 01:41:42 GMT 2014

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

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