Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF+GWT status?
EMF+GWT status? [message #425917] Thu, 11 December 2008 20:10 Go to next message
Jason Henriksen is currently offline Jason HenriksenFriend
Messages: 231
Registered: July 2009
Senior Member
Hi All,

I'm curious if anything ever happened with getting EMF objects to be
usable in GWT. Last time I looked the EMF generated java code had
things in it that GWT couldn't translate to JavaScript.

I was thinking about trying to mod the GWT compiler to ignore things
with @NoJS on them and then make my JET template add the @NoJS
annotation to everything that in my impl wasn't basic Pojo. I would
lose the notifications aspect of my EMF objects while in JavaScript, but
I could get all the benefits of EMF in the backend and not have to copy
data in order to display those objects in the front end. Certainly not
as good as EMF in SWT, but still very helpful if I'm in GWT.

Does that sound useful / interesting? Have you found any other
solutions that I'm not aware of?

Thanks much!

Jason Henriksen
Re: EMF+GWT status? [message #425921 is a reply to message #425917] Thu, 11 December 2008 20:58 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Well I've once had a running version of EMF in GWT. The most work is to
get Ecore-Ported because it uses internally some classes not available
in GWT but after a week of patching I had a working version [1].

This was sometimes in between GWT-1.5 dev cycle but I think they removed
many classes in the final release. Still having a EMF-Core port
available for GWT is a plan item of UFaceKit.

What do you think GWT-compiler can't understand? Infact EMF is quite
easy because it doesn't need reflection which is not available at the
GWT-Level.

One more note on all this is that UFaceKit comes with a very very light
weight model technology named UBean [3] whose API is modeled after the
one from EObject.

Tom

[1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=209434
[2]http://www.eclipse.org/proposals/ufacekit/
[3] http://uface.googlecode.com/svn/trunk/proper/org.ufacekit/or g.ufacekit.core/org.ufacekit.core.ubean/

jason henriksen schrieb:
> Hi All,
>
> I'm curious if anything ever happened with getting EMF objects to be
> usable in GWT. Last time I looked the EMF generated java code had
> things in it that GWT couldn't translate to JavaScript.
>
> I was thinking about trying to mod the GWT compiler to ignore things
> with @NoJS on them and then make my JET template add the @NoJS
> annotation to everything that in my impl wasn't basic Pojo. I would
> lose the notifications aspect of my EMF objects while in JavaScript, but
> I could get all the benefits of EMF in the backend and not have to copy
> data in order to display those objects in the front end. Certainly not
> as good as EMF in SWT, but still very helpful if I'm in GWT.
>
> Does that sound useful / interesting? Have you found any other
> solutions that I'm not aware of?
>
> Thanks much!
>
> Jason Henriksen


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:EMF: New Data types
Next Topic:EMF Statechart support for generating state machine codes
Goto Forum:
  


Current Time: Thu Apr 25 12:44:40 GMT 2024

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

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

Back to the top