<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-1090369574213922643</id><updated>2009-10-13T01:20:24.435-07:00</updated><title type='text'>Eclipse Fever</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tweakeclipse.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default'/><link rel='alternate' type='text/html' href='http://tweakeclipse.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Chetan</name><uri>http://www.blogger.com/profile/12901447063650143488</uri><email>chetankumar@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1090369574213922643.post-8769540156344744997</id><published>2009-07-18T21:08:00.000-07:00</published><updated>2009-07-18T21:11:31.247-07:00</updated><title type='text'>EMF @ Eclipse India Summit '09</title><content type='html'>&lt;span class="Apple-style-span"  style=" ;font-family:'Times New Roman';"&gt;&lt;div style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; width: auto; font: normal normal normal 100%/normal Georgia, serif; text-align: left; "&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;   I had the oppurtunity to speak at the &lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.devmarch.com/eclipsesummit/"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Eclipse India Summit&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; 2009. It was a joint session with me and my friend and ex-colleague &lt;/span&gt;&lt;/span&gt;&lt;a href="http://eclipseo.blogspot.com/"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Annamalai&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; ... so we thought we'll do something different with the session ... which was for 3 hours!!! Yes the audience had to bear with us for 3 hours. We, instead of dividing the presentation content amongst ourselves wanted to be different - both of us were on stage and delivering the presentation like a dialogue. It was like Malai represented the new user or developer who's new task is to learn and do something out of EMF and i played the supposed know-something-about-EMF guy who went around answering his questions.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; width: auto; font: normal normal normal 100%/normal Georgia, serif; text-align: left; "&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;  &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;   The session started off soon after a great lunch ... in an hall with real cozy ambience. The MC actually had to ask the ppl to stand up and had them stretching to make them alert. Then the session started off ... i was kinda petrified initialy looking at all those people eagerly waiting to take something out from the session ... the show went on frequently switching from the slides to showing running examples. We started off to a packed audience ... and finished to a packed audience. In the end both me and Malai were exhausted from all the talking and standing, but it felt good. Content and video of the slides will be uploaded soon (i m waiting with my fingers crossed.) &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1090369574213922643-8769540156344744997?l=tweakeclipse.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tweakeclipse.blogspot.com/feeds/8769540156344744997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1090369574213922643&amp;postID=8769540156344744997' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/8769540156344744997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/8769540156344744997'/><link rel='alternate' type='text/html' href='http://tweakeclipse.blogspot.com/2009/07/emf-eclipse-india-summit-09.html' title='EMF @ Eclipse India Summit &apos;09'/><author><name>Chetan</name><uri>http://www.blogger.com/profile/12901447063650143488</uri><email>chetankumar@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17481550664915166511'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1090369574213922643.post-609478926944342633</id><published>2009-05-04T06:15:00.000-07:00</published><updated>2009-05-04T06:41:32.019-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RCP'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='help assistant'/><title type='text'>Help assistant widget for RCP</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt; Everyone who's used any MS office application would have come across this annoying yet sometimes useful Office assistant. He's there to "point" us in the right direction to do something. If we've got questions (as silly as how to wrap text) he may have the "answers". &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  I was wondering ... &lt;/span&gt;RCP&lt;span style="font-family: trebuchet ms;"&gt; has a very nice help system in the form of &lt;/span&gt;cheatsheets&lt;span style="font-family: trebuchet ms;"&gt;, &lt;/span&gt;balloon&lt;span style="font-family: trebuchet ms;"&gt; help, context based help, status bar messages, etc... which will prompt the user for action/attention as required. But the help system doesn't have something like a &lt;/span&gt;&lt;span style="font-family: trebuchet ms;"&gt;help assistant - similar to the ones in MS Office applications. Eclipse RCP as an application is used in a variety of domains (hell even Swiss &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.eclipse.org/community/casestudies/swissrailfinal.pdf"&gt;Railway people&lt;/a&gt;&lt;span style="font-family: trebuchet ms;"&gt; use it!) we get users who aren't aware as much and aren't willing to experiment or search to find out. I'll share some inputs I got from users who don't know much  the Eclipse UI way&lt;/span&gt;&lt;span style="font-family: trebuchet ms;"&gt;. There are a some of them who say "How do I know that i have to right-click on the wizard to get a context-menu full of options ?" We can provide a message in the wizard page ... but that may be hard to notice. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  I feel &lt;/span&gt;RCP&lt;span style="font-family: trebuchet ms;"&gt; help assistant widget is a better &lt;/span&gt;HMI&lt;span style="font-family: trebuchet ms;"&gt; mechanism than the usual status bar messages. May be the widget can be a very low on graphics, animation and high on usefulness. This is just an idea ... I thought &lt;/span&gt;I'll&lt;span style="font-family: trebuchet ms;"&gt; share. &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1090369574213922643-609478926944342633?l=tweakeclipse.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tweakeclipse.blogspot.com/feeds/609478926944342633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1090369574213922643&amp;postID=609478926944342633' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/609478926944342633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/609478926944342633'/><link rel='alternate' type='text/html' href='http://tweakeclipse.blogspot.com/2009/05/help-assistant-widget-for-rcp.html' title='Help assistant widget for RCP'/><author><name>Chetan</name><uri>http://www.blogger.com/profile/12901447063650143488</uri><email>chetankumar@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17481550664915166511'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1090369574213922643.post-6991025035236902548</id><published>2009-02-23T07:46:00.000-08:00</published><updated>2009-02-23T08:02:04.348-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='keyboard shortcuts Eclipse editors planeteclipse'/><title type='text'>PgUp and PgDwn through Editors</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;    Today started off pretty good. My favorite music-director (composer) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.arrahman.com/"&gt;A R Rahman&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; won the Best Original Score Oscar for the movie &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://en.wikipedia.org/wiki/Slumdog_Millionaire"&gt;Slumdog Millionaire&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; ... and i got a "Welcome to the Planet" mail from &lt;a href="http://www.planeteclipse.org/planet/"&gt;Planeteclipse.org&lt;/a&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;    This motivated me to write something on this day ... just to keep a note. Being true to my blog's "tweakeclipse" self ... I want to tell you about a nice to have and lesser known (as far as i know) navigation feature in Eclipse Editors.&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; You can use Ctrl + PgUp and Ctrl + PgDwn to move across the open editors! This is one more shortcut amongst many as listed in this blog &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://blog.nirav.name/2008/08/productive-keyboard-shortcuts-for.html"&gt;entry&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; by Nirav Thaker. One of my guru's says that this shortcut is inspired from MS Excel.&lt;br /&gt;&lt;br /&gt;   Hope this helps!&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1090369574213922643-6991025035236902548?l=tweakeclipse.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tweakeclipse.blogspot.com/feeds/6991025035236902548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1090369574213922643&amp;postID=6991025035236902548' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/6991025035236902548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/6991025035236902548'/><link rel='alternate' type='text/html' href='http://tweakeclipse.blogspot.com/2009/02/pgup-and-pgdwn-through-editors.html' title='PgUp and PgDwn through Editors'/><author><name>Chetan</name><uri>http://www.blogger.com/profile/12901447063650143488</uri><email>chetankumar@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17481550664915166511'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1090369574213922643.post-1108281137249287797</id><published>2009-02-16T07:28:00.000-08:00</published><updated>2009-02-16T09:02:33.617-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EMF FAQ'/><category scheme='http://www.blogger.com/atom/ns#' term='EMF Maps'/><category scheme='http://www.blogger.com/atom/ns#' term='EMap'/><title type='text'>Create Maps in EMF - the other way</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;EMF wiki on Eclipsepedia has a post which shows you one &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://wiki.eclipse.org/index.php/EMF-FAQ#How_do_I_create_a_Map_in_EMF.3F"&gt;method&lt;/a&gt;&lt;span style="font-family: trebuchet ms;"&gt; of creating maps in EMF.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;I feel that the suggested method in wiki will not exactly allow you to access a map as it should be.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;like say - &lt;span style="font-family: courier new;"&gt;myMap.put(&lt;span style="color: rgb(51, 51, 255);"&gt;"key"&lt;/span&gt;, value);&lt;/span&gt; Instead you'll have to do:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;myMap.eSet(keyFeature, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;"key"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;&lt;span style="font-family: courier new;"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;myMap.eSet(valueFeature, valueObj);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: trebuchet ms;"&gt;  After some trails here's the second method summarized in terms of steps.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;To create a map using Reflective Ecore Editor:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt; create an &lt;span style="font-family: courier new; color: rgb(102, 0, 204); font-weight: bold;"&gt;EAttribute&lt;/span&gt; and set a name (let's say _map) to it.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt; set _map's &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;&lt;span style="font-family: courier new; color: rgb(102, 0, 204); font-weight: bold;"&gt;EType&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt; as &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;&lt;span style="font-family: courier new; color: rgb(102, 0, 204); font-weight: bold;"&gt;EMap&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;&lt;/span&gt;&lt;k, style="font-family: trebuchet ms;" v=""&gt; [&lt;span style="font-family: courier new; color: rgb(153, 51, 153);"&gt;java.util.Map&lt;/span&gt;]&lt;/k,&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;k, style="font-family: trebuchet ms;" v=""&gt; create an &lt;/k,&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;&lt;span style="font-family: courier new; color: rgb(102, 0, 204); font-weight: bold;"&gt;ETypedParameter&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;k, style="font-family: trebuchet ms;" v=""&gt; for key and set &lt;/k,&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;&lt;span style="font-family: courier new; color: rgb(102, 0, 204); font-weight: bold;"&gt;EType&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;k, style="font-family: trebuchet ms;" v=""&gt; accordingly&lt;/k,&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;k, style="font-family: trebuchet ms;" v=""&gt; crate another &lt;/k,&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;&lt;span style="font-family: courier new; color: rgb(102, 0, 204); font-weight: bold;"&gt;ETypedParameter&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;k, style="font-family: trebuchet ms;" v=""&gt; for value and set &lt;/k,&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;&lt;span style="font-family: courier new; color: rgb(102, 0, 204); font-weight: bold;"&gt;EType&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;k, style="font-family: trebuchet ms;" v=""&gt; accordingly.&lt;/k,&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:100%;"&gt;&lt;k, style="font-family: trebuchet ms;" v=""&gt;&lt;br /&gt;&lt;/k,&gt;&lt;span style="font-family: trebuchet ms;"&gt;here is a snap shot of how a map looks in the Ecore Editor.&lt;/span&gt;&lt;br /&gt;&lt;k, style="font-family: trebuchet ms;" v=""&gt;&lt;br /&gt;&lt;/k,&gt;&lt;a style="font-family: trebuchet ms;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_F0aG7UngO-Q/SZmI__yey2I/AAAAAAAAB1Q/TRV01iIs6AA/s1600-h/emap_ecore_editor.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 78px;" src="http://1.bp.blogspot.com/_F0aG7UngO-Q/SZmI__yey2I/AAAAAAAAB1Q/TRV01iIs6AA/s320/emap_ecore_editor.JPG" alt="" id="BLOGGER_PHOTO_ID_5303420669241772898" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;k, v=""&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;what happens behind the scenes of the editor ?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;well, these lines of code are executed.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;                       &lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;EAttribute _map = EcoreFactory.&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;eINSTANCE&lt;/span&gt;.createEAttribute();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            _map.setName("_map");            &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            EGenericType _mapType = EcoreFactory.&lt;/span&gt;&lt;/span&gt;&lt;/k,&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;eINSTANCE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;k, v=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;.createEGenericType();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            _mapType.setEClassifier(EcorePackage.&lt;/span&gt;&lt;/span&gt;&lt;/k,&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;eINSTANCE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;k, v=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;.getEMap());&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            &lt;span style="color: rgb(0, 102, 0);"&gt;// set key&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            EGenericType key = EcoreFactory.&lt;/span&gt;&lt;/span&gt;&lt;/k,&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;eINSTANCE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;k, v=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;.createEGenericType();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            key.setEClassifier(EcorePackage.&lt;/span&gt;&lt;/span&gt;&lt;/k,&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;eINSTANCE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;k, v=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;.getEString());&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            &lt;span style="color: rgb(0, 102, 0);"&gt;// set key&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            EGenericType value = EcoreFactory.&lt;/span&gt;&lt;/span&gt;&lt;/k,&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;eINSTANCE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;k, v=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;.createEGenericType();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            value.setEClassifier(EcorePackage.&lt;/span&gt;&lt;/span&gt;&lt;/k,&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;eINSTANCE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;k, v=""&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;.getEObject());&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            &lt;span style="color: rgb(0, 102, 0);"&gt;// add them&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            _mapType.getETypeArguments().add(key);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            _mapType.getETypeArguments().add(value);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            _map.setEGenericType(_mapType);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;You have to use it like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    Map&lt;k,&gt; _map = (Map&lt;k,&gt;) instance&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;            .eGet(_mapFeature);  &lt;span style="color: rgb(0, 153, 0);"&gt;// this is now java.util.Map &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;    // don't forget to set the changes on _map back to instance!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Happy mapping!&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/k,&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1090369574213922643-1108281137249287797?l=tweakeclipse.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tweakeclipse.blogspot.com/feeds/1108281137249287797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1090369574213922643&amp;postID=1108281137249287797' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/1108281137249287797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/1108281137249287797'/><link rel='alternate' type='text/html' href='http://tweakeclipse.blogspot.com/2009/02/create-maps-in-emf-other-way.html' title='Create Maps in EMF - the other way'/><author><name>Chetan</name><uri>http://www.blogger.com/profile/12901447063650143488</uri><email>chetankumar@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17481550664915166511'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_F0aG7UngO-Q/SZmI__yey2I/AAAAAAAAB1Q/TRV01iIs6AA/s72-c/emap_ecore_editor.JPG' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1090369574213922643.post-6331673020092771097</id><published>2009-02-10T21:45:00.000-08:00</published><updated>2009-02-10T22:19:30.307-08:00</updated><title type='text'>Add branding to the XML files you generate from your EMF model</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;What if you want to suggest that an XML file is generated using your product?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;If you look at some of these commercial tools they add a comment which proudly says "used XXX v a.b.c to generate this file." Just out of curiosity I wanted to do the same using EMF resource save api.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;   Guess what! It is possible to do such a thing with EMF resource api. There's this interface called ResourceHandler inside org.eclipse.emf.ecore.xmi.XMLResource.java which can be implemented as required.  I have provided an example for your benifit.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-weight: bold; color: rgb(153, 51, 153);"&gt;public class&lt;/span&gt; MyResourceHandler &lt;span style="color: rgb(153, 51, 153); font-weight: bold;"&gt;implements&lt;/span&gt; ResourceHandler {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;" &gt;    /* &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;" &gt; * you have the  file handle of the XML!&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;" &gt; */&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;      &lt;span style="font-weight: bold; color: rgb(153, 51, 153);"&gt;public void&lt;/span&gt; postSave(XMLResource resource, OutputStream outputStream,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    Map options) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                      &lt;span style="color: rgb(0, 153, 0);"&gt;// append your comment here.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                &lt;span style="font-weight: bold; color: rgb(153, 51, 153);"&gt;byte&lt;/span&gt;[] trailcomment = "some comment"; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// enclose it in XML comment          tags.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;!-- generated with my app. (c) all rights reserved! --&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                       &lt;span style="font-weight: bold; color: rgb(153, 51, 153);"&gt;try&lt;/span&gt; {             &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            outputStream.write(trailComment);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        }&lt;br /&gt;                &lt;span style="font-weight: bold; color: rgb(153, 51, 153);"&gt;catch&lt;/span&gt; (IOException e) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                        &lt;span style="color: rgb(0, 153, 0);"&gt;// may be log something here.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        } &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        &lt;span style="color: rgb(0, 153, 0);"&gt;// do &lt;span style="font-weight: bold;"&gt;NOT&lt;/span&gt; close the stream here. EMF resource save will eventually do it for you.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-family:courier new;"&gt;   }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;br /&gt;&lt;br /&gt;You can find the link to the EMF newsgroup thread &lt;a href="http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.emf/msg26392.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1090369574213922643-6331673020092771097?l=tweakeclipse.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tweakeclipse.blogspot.com/feeds/6331673020092771097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1090369574213922643&amp;postID=6331673020092771097' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/6331673020092771097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/6331673020092771097'/><link rel='alternate' type='text/html' href='http://tweakeclipse.blogspot.com/2009/02/add-branding-to-xml-files-you-generate.html' title='Add branding to the XML files you generate from your EMF model'/><author><name>Chetan</name><uri>http://www.blogger.com/profile/12901447063650143488</uri><email>chetankumar@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17481550664915166511'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1090369574213922643.post-8322935234185060973</id><published>2009-01-05T22:53:00.000-08:00</published><updated>2009-01-05T23:07:58.466-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EclipseCon 2009'/><category scheme='http://www.blogger.com/atom/ns#' term='Modeling'/><category scheme='http://www.blogger.com/atom/ns#' term='Ed Merks'/><title type='text'>The Unbearable Stupidity of Modeling - a talk by Ed Merks</title><content type='html'>&lt;span style="font-family: trebuchet ms;"&gt; "Unbearable stupidity of Modeling" is the name of a 50 minute long tech talk to be given by Ed Merks himself at EclipseCon 2009. Choosing such a title is a very good example of Reverse Engineering ... that is ... accept the mis-conception before disproving it! In this case it may be an attempt to clear out some of the so-called disadvantages or problems with using EMF. &lt;br /&gt; &lt;br /&gt;   I was just browsing around on some of the talks in the EclipseCon &lt;a href="http://www.eclipse.org/org/press-release/20081216_eclipsecon_program.php"&gt;website&lt;/a&gt; and I found &lt;a href="http://www.eclipsecon.org/2009/sessions?id=358"&gt;this&lt;/a&gt;. The heading of Ed's talk makes a bold statement, and so does almost all of the content in the abstract. If a guy who is using EMF in his projects/requirements reads through the abstract will be taken slightly aback by the tone except for one last line which changes the tone completely. Nice trick to make people read on ;)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;&lt;br /&gt;   I so want to listen to Ed speak about this topic ... given the different nature of the abstract itself the whole topic ... i think will be an eye opener for many of us. People who have an oppurtunity to attend EclipseCon ... don't miss this talk! You can find the abstract &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.eclipsecon.org/2009/sessions?id=358"&gt;here&lt;/a&gt;&lt;span style="font-family: trebuchet ms;"&gt;. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;  Can't wait for the content of the talk to come out ... coz I cannot make it to EclipseCon (the reason is simply complicated ;)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1090369574213922643-8322935234185060973?l=tweakeclipse.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tweakeclipse.blogspot.com/feeds/8322935234185060973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1090369574213922643&amp;postID=8322935234185060973' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/8322935234185060973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/8322935234185060973'/><link rel='alternate' type='text/html' href='http://tweakeclipse.blogspot.com/2009/01/unbearable-stupidity-of-modeling-talk.html' title='The Unbearable Stupidity of Modeling - a talk by Ed Merks'/><author><name>Chetan</name><uri>http://www.blogger.com/profile/12901447063650143488</uri><email>chetankumar@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17481550664915166511'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1090369574213922643.post-2549492344849960293</id><published>2008-10-19T07:27:00.000-07:00</published><updated>2008-10-19T07:34:12.915-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='manage configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse 3.4'/><category scheme='http://www.blogger.com/atom/ns#' term='extension locations'/><category scheme='http://www.blogger.com/atom/ns#' term='ganymede'/><title type='text'>Manage Extension Locations in Eclipse Ganymede</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;    An Eclipse developer is very quick to spot the very visible difference in the new Ganymede release. We are used to download an IDE and customize the configuration using the Help -&gt; Software Updates -&gt; Manage Configuration. Guess what! there is no more a Manage Configuration option anymore in Ganymede. Instead its called Software Updates for Installed Software and Available Software.&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;   It looks kinda complicated at first, let's see how do u Manage Configuration in Eclipse Ganymede. &lt;/span&gt;&lt;/span&gt;&lt;a href="http://dayg.wordpress.com/2008/06/26/eclipse-34-ganymede-managing-extension-locations/"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;This&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; article gives a clear picture.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1090369574213922643-2549492344849960293?l=tweakeclipse.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tweakeclipse.blogspot.com/feeds/2549492344849960293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1090369574213922643&amp;postID=2549492344849960293' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/2549492344849960293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/2549492344849960293'/><link rel='alternate' type='text/html' href='http://tweakeclipse.blogspot.com/2008/10/manage-extension-locations-in-eclipse.html' title='Manage Extension Locations in Eclipse Ganymede'/><author><name>Chetan</name><uri>http://www.blogger.com/profile/12901447063650143488</uri><email>chetankumar@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17481550664915166511'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1090369574213922643.post-138659806176702302</id><published>2008-10-18T22:29:00.000-07:00</published><updated>2008-10-18T23:24:15.440-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='serialize'/><category scheme='http://www.blogger.com/atom/ns#' term='XMLHelper'/><category scheme='http://www.blogger.com/atom/ns#' term='without namespace'/><category scheme='http://www.blogger.com/atom/ns#' term='EMF Resource'/><category scheme='http://www.blogger.com/atom/ns#' term='save'/><title type='text'>Save an EMF Resource with or without namespace!</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  We tried out this one somewhere in 2007, but i suddenly felt the need to write about it now( i dono, funny like that!). Well coming to the point... serializing an EMF Resource to an XML file actually seems strange but sometimes it becomes necessary. I'll not get into the details of why do we need an XML file with no namespace! and just tell you how to do it.&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  When an XML file is parsed using Resource API, for every XML element a corresponding model element is searched from an EPackage instance. This &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EPacakge &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;instance is normally registered to an namespace URI. For eg. &lt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;myns:SHIPORDER&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&gt;  XML element &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;may map to an &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EClass ShipOrder &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;in the model and myns URI is registered to an instance of &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ShipOrderPackage&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.  So when the &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;SHIPORDER&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; XML element is encountered Resource API understands that an object of type &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;StudentType &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;is to be created.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  Now, what if the XML element has no namespace... it'll look like this: &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;student&gt;&lt;/student&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;. If we want to continue the usual way, then we have to do:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Register the &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EPackage &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;instance to an empty namespace URI.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;extend the &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;XMLHelperImpl &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;class and override &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;getQName(EPackage, String, boolean) &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;method&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;bind this &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;XMLHelper &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;implementation to your model's generated &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;XyzResouceImpl &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;through &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;createXMLHelper()&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; method.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;The first point is quite straight forward. Although its better to register ur &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EPackage &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;instance to both empty as well as the required namespace URI. For the second one, &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;you need to extend the class org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl and override the method specified above to suit ur requirements. Here's an example (considering the good old ShipOrder schema model)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/**&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; * let's save without namespace!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; * just delegate to appropriate Resouce API &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; *&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; */&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;public class &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ShipOrderXMLHelper &lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;extends &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;XMLHelperImpl {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;protected &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; getQName(&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EPackage &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;package1, &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;String &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;name,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;boolean &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;mustHavePrefix) &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;( isNameSpaceNeeded() ) {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 102, 0);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;// let's send what ever prefix that's got as the arguement&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153); font-weight: bold; white-space: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;return super&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.getQName(package1, name, true);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;else &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 102, 0);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;// i don't want a namespace prefix &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;return super&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.getQName(package1, name, false);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;            &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;return &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;"";&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'courier new';"&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Now that we have our implementation of XMLHelper, let's bind it to the generated ShipOrderResource implementation.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/**&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; * &lt;/span&gt;&lt;!-- begin-user-doc --&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; * The &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Resource &lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; associated with the package.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; * &lt;/span&gt;&lt;!-- end-user-doc --&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; * @see org.example.shiporder.util.ShiporderResourceFactoryImpl&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; * @generated&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; */&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;public class&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; ShiporderResourceImpl &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;extends &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;XMLResourceImpl {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/* (non-Javadoc)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; * @see org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl#createXMLHelper()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; * an override to bind our helper implementation&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 102, 255);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; */&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;protected &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;XMLHelper createXMLHelper() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 51, 153);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;return new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; ShipOrderXMLHelper();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;    /&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 102, 0);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/ other generated ShipOrderResouceImpl methods follow.        &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;} &lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 102, 0);"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;//ShiporderResourceImpl&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   That's it you are all set to serialize an EMF resource without namespace. Before you go for a coffee ... one last thing ... do not forget to create ur EMF resource from the generated XyzResourceFactory.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1090369574213922643-138659806176702302?l=tweakeclipse.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tweakeclipse.blogspot.com/feeds/138659806176702302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1090369574213922643&amp;postID=138659806176702302' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/138659806176702302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/138659806176702302'/><link rel='alternate' type='text/html' href='http://tweakeclipse.blogspot.com/2008/10/save-emf-resource-with-or-without.html' title='Save an EMF Resource with or without namespace!'/><author><name>Chetan</name><uri>http://www.blogger.com/profile/12901447063650143488</uri><email>chetankumar@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17481550664915166511'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1090369574213922643.post-8969662597775549310</id><published>2008-07-23T06:18:00.000-07:00</published><updated>2008-07-23T06:20:29.663-07:00</updated><title type='text'>Back To Basics!</title><content type='html'>Some interesting articles about basics that an eclipse (or a Java) developer must know.&lt;br /&gt;&lt;br /&gt;1. Let's start with the classpath itself!&lt;br /&gt;&gt; Here's an interesting &lt;a href="http://www.ibm.com/developerworks/java/library/j-classpath-windows/"&gt;article&lt;/a&gt; on IBM Developerworks by Elliot Harold. Good read this one.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1090369574213922643-8969662597775549310?l=tweakeclipse.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tweakeclipse.blogspot.com/feeds/8969662597775549310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1090369574213922643&amp;postID=8969662597775549310' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/8969662597775549310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1090369574213922643/posts/default/8969662597775549310'/><link rel='alternate' type='text/html' href='http://tweakeclipse.blogspot.com/2008/07/back-to-basics.html' title='Back To Basics!'/><author><name>Chetan</name><uri>http://www.blogger.com/profile/12901447063650143488</uri><email>chetankumar@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17481550664915166511'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry></feed>