Could you give me a small example of integrating java code generated from an EMF model with VE1.0 [message #57755] |
Thu, 26 August 2004 18:57 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: elvis_dowson.hotmail.com
Hi,
Would it be possible for you to give me a small example of
integrating java code generated from an EMF model with VE1.0 ?
Suppose I create a UML diagram with a class called Library. It contains an
attribute called "name" of type EString. I use the EMF Framework to generate
the library model, the edit classes and the editor classes.
Now say, I launch VE and create a simple Swing Dialog class and put one GUI
text field onto the Dialog window, that will display the name of the
library.
Could you please give me a sample code that shows how I can extract a
singleton adapter and display the contents of the library class ?
Once I get the hang of it and learn how to use the classes, I should be
able to build a more complex application.
Thanks and I'm sorry for troubling you with this request.
Best regards,
Elvis Dowson
Rich Kulp wrote :
For the VE, as long as your GUI is Swing/AWT/SWT then you can build the
gui with the ve and write the code by hand that connects the EMF
adapters to the GUI.
In the future as we expand the API you would be able to contribute code
that runs in the VE itself that could understand your EMF adapters and
actually have the VE (thru your code) generate the java code necessary
to hook the adapters to the GUI.
--
Thanks, Rich Kulp
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03263 seconds