|
Re: Customizing EMF.Edit's ItemProviders [message #494615 is a reply to message #494609] |
Sun, 01 November 2009 08:46 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------010603040707020002020300
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
John,
Have a look at
< http://wiki.eclipse.org/index.php/EMF/FAQ#What_are_Dynamic_T emplates.3F>
http://wiki.eclipse.org/index.php/EMF/FAQ#What_are_Dynamic_T emplates.3F
John S. wrote:
> Hello,
>
> I would like to insert a new line (my own class to store the
> notificication in a separated model) into the
> notifyChanged(Notification notification) method of all the ItemProviders.
You could just just an EContentAdapter added to your resource set to
handle this separately.
> I was told about customizing templates and use this for code
> generation, but I am not sure what part of the EMF I should use and
> exactly what type of template I am supposed to write to do these new
> line insertions.
You'd modify the ItemProvider.javajet.
> I tried to find some tutorials and examples but I could not find
> anything related to this. So if someone did something like this or
> know how to, please drop a line on this.
>
> Best Regards,
> John
--------------010603040707020002020300
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
John,<br>
<br>
Have a look at<a
href=" http://wiki.eclipse.org/index.php/EMF/FAQ#What_are_Dynamic_T emplates.3F"><br>
</a>
<blockquote><a
href=" http://wiki.eclipse.org/index.php/EMF/FAQ#What_are_Dynamic_T emplates.3F"> http://wiki.eclipse.org/index.php/EMF/FAQ#What_are_Dynamic_T emplates.3F</a><br>
</blockquote>
<br>
John S. wrote:
<blockquote cite="mid:hcj7ik$mjm$1@build.eclipse.org" type="cite">Hello,
<br>
<br>
I would like to insert a new line (my own class to store the
notificication in a separated model) into the
notifyChanged(Notification notification) method of all the
ItemProviders. </blockquote>
You could just just an EContentAdapter added to your resource set to
handle this separately.<br>
<blockquote cite="mid:hcj7ik$mjm$1@build.eclipse.org" type="cite">I was
told about customizing templates and use this for code generation, but
I am not sure what part of the EMF I should use and exactly what type
of template I am supposed to write to do these new line insertions.</blockquote>
You'd modify the ItemProvider.javajet.<br>
<blockquote cite="mid:hcj7ik$mjm$1@build.eclipse.org" type="cite"> I
tried to find some tutorials and examples but I could not find anything
related to this. So if someone did something like this or know how to,
please drop a line on this.
<br>
<br>
Best Regards,
<br>
John </blockquote>
</body>
</html>
--------------010603040707020002020300--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03002 seconds