Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » extending EObjects to include useful stuff like EImage and EFile?
extending EObjects to include useful stuff like EImage and EFile? [message #754252] Tue, 01 November 2011 16:12 Go to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
I just added an Image EClass reference to my customer type with some attributes like filepath and description. However it occurs to me that the generated code is not going to know much about Images and Files in respect of generating editors and viewers because there is no EType for them.

However surely this type of thing comes up all the time, and there are a whole bunch of widgets for which it would be pretty easy to package a generator template for them.

Is there some project that goes this extra step, and provides a sort of widget layer on top of ecore?

(ps I am looking at some of the emf/gwt crossovers at the moment, so that would be ideal)

Thanks
Re: extending EObjects to include useful stuff like EImage and EFile? [message #754322 is a reply to message #754252] Wed, 02 November 2011 06:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Tom,<br>
<br>
Comments below.<br>
<br>
On 01/11/2011 5:12 PM, Tom H wrote:
<blockquote cite="mid:j8p51i$jgl$1@news.eclipse.org" type="cite">I
just added an Image EClass reference to my customer type with some
attributes like filepath and description. However it occurs to me
that the generated code is not going to know much about Images and
Files in respect of generating editors and viewers because there
is no EType for them.
<br>
<br>
However surely this type of thing comes up all the time, and there
are a whole bunch of widgets for which it would be pretty easy to
package a generator template for them.
<br>
</blockquote>
Well, references to files will typically not be portable across
machines, so it doesn't seem such a common thing to persist in a
model...  You can quite easily create a custom cell editor for your
type though:<br>
<ul>
<li class="toclevel-2"><a
href="http://wiki.eclipse.org/EMF/Recipes#Recipe:_Create_your_own_property_editor_in_a_generated_application"><span
class="tocnumber">3.1</span> <span class="toctext">Recipe:
Create your own property editor in a generated application</span></a></li>
</ul>
<br>
<blockquote cite="mid:j8p51i$jgl$1@news.eclipse.org" type="cite">
<br>
Is there some project that goes this extra step, and provides a
sort of widget layer on top of ecore?
<br>
<br>
(ps I am looking at some of the emf/gwt crossovers at the moment,
so that would be ideal)
<br>
<br>
Thanks
<br>
</blockquote>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[bug 362543] standard ECore tree editor crashes in 3.7.1: simple EAttribute drag/drop triggers &
Next Topic:save not enabled while emf editing
Goto Forum:
  


Current Time: Thu Apr 25 14:14:40 GMT 2024

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

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

Back to the top