In general, EMF will give you an interface and a class implementing it. The class will have what are basically macros for the default values for class variables, along with getters and setters. Setters automatically come with notifications for EMF's observer
pattern implementation and getters for objects will have a way of dealing with proxies (which I think are part of EMF's persistence that allow you to read things out of the persistence file lazily) Basic getters that ignore proxies also get included.
You can see which parts were generated by EMF because they're marked with a @generated annotation. Things marked with "@generated NOT" were things I changed, as that stops them from being overwritten when regenerating the model. (There's a way we can put
the implementation code in the model itself to avoid that, but only as a plain string inside the properties page, which isn't very workable.)
Robert
From: ice-dev-bounces@xxxxxxxxxxx <ice-dev-bounces@xxxxxxxxxxx> on behalf of Jay Jay Billings <jayjaybillings@xxxxxxxxx>
Sent: Friday, October 16, 2015 3:38 PM
To: ice developer discussions
Subject: Re: [ice-dev] EMF Modeling Prototype Screenshots
Robert,
Okay. I see some of that in VizObject. In general (high level), what was generated and what did you implement?
Jay
On Oct 16, 2015 3:22 PM, "Smith, Robert W." < smithrw@xxxxxxxx> wrote:
They were all generated by EMF, except JavaFXTutorial and Xform. I added implementation code for some functions in almost all of the Impl classes.
Robert
Robert,
Will you tell me what classes you wrote? I'll assume the rest are generated by the EMF.
Jay
On Oct 16, 2015 1:17 PM, "Smith, Robert W." < smithrw@xxxxxxxx> wrote:
https://github.com/SmithRWORNL/EMF-JavaFX-Prototype
It isn't completely commented, partially due to avoiding comments for things that EMF is going to replace (along with their comments) the next time the model is regenerated, but also because I haven't had a chance to clean the code up entirely. I also haven't
had EMF generate test code for it, yet.
Robert
Robert,
Awesome! Have you committed your code to a repo somewhere so that I can look at it?
Jay
On Oct 16, 2015 12:34 PM, "Smith, Robert W." < smithrw@xxxxxxxx> wrote:
Attached are an example of a JavaFX geometry editor created using EMF modeling to auto-generate the code. It includes a screenshot of the editor itself as well as the UML diagram used to generate its code.
Robert
_______________________________________________
ice-dev mailing list
ice-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-dev
_______________________________________________
ice-dev mailing list
ice-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-dev
_______________________________________________
ice-dev mailing list
ice-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-dev
|