|
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 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02943 seconds