Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Could you give me a small example of integrating java code generated from an EMF model with VE1.0
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
Eclipse UserFriend
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

Re: Could you give me a small example of integrating java code generated from an EMF model with VE1 [message #57780 is a reply to message #57755] Thu, 26 August 2004 19:34 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

That is just straight Swing and EMF. You take the name of the EMF object
and set it into the text.

textfield.setText(yourEMFObject.getName());


--
Thanks, Rich Kulp

Re: Could you give me a small example of integrating java code generated from an EMF model with VE1 [message #597856 is a reply to message #57755] Thu, 26 August 2004 19:34 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

That is just straight Swing and EMF. You take the name of the EMF object
and set it into the text.

textfield.setText(yourEMFObject.getName());


--
Thanks, Rich Kulp

Previous Topic:Could you give me a small example of integrating java code generated from an EMF model with VE1.0
Next Topic:VE: Error when opening a new created Visual Class
Goto Forum:
  


Current Time: Fri Aug 16 17:38:31 GMT 2024

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

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

Back to the top