<?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' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7268273675548895335</id><updated>2012-02-16T03:19:50.642-08:00</updated><category term='WTP - Bug'/><title type='text'>World Builder - Open Source</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://wb-os.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://wb-os.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ping9</name><uri>http://www.blogger.com/profile/05290501577460943332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7268273675548895335.post-277589836918922311</id><published>2009-04-03T19:44:00.000-07:00</published><updated>2009-04-04T07:18:19.782-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WTP - Bug'/><title type='text'>Possible Fix - Bug 137822 - Part I</title><content type='html'>Shelley works on the bug - 137822 and log all detailed information about the bug via her blog http://xiajunshi.wordpress.com/&lt;br /&gt;I saw her last post yesterday and she was very close to fix the bug so I think it is time to give her a hand&lt;br /&gt;&lt;br /&gt;Her recent investigations are very specific and accurate. It saves me a lot time to look the bug all over again and she points out the exact location where I need to start.&lt;br /&gt;&lt;br /&gt;Here is the possible solution to the Bug - 137822 (Wait for Shelley's confirmation)&lt;br /&gt;&lt;br /&gt;Before I go into the solution, let me describe what causes this bug.&lt;br /&gt;&lt;br /&gt;If I have a Server in the "Servers View" tab, I need to initialize the ILaunchConfigurationWorkingCopy before I run a New_configuration, in Apache Tomcat, Run Configurations. The problem is that the ServerLaunchConfigurationTab class does not set up &lt;span style="font-style: italic;"&gt;ILaunchConfigurationWorkingCopy wc &lt;/span&gt;from the&lt;span style="font-style: italic;"&gt; void initializeFrom(ILaunchConfiguration configuration) &lt;/span&gt;method before calling the &lt;span style="font-style: italic;"&gt;void handleServerSelection()&lt;/span&gt;.&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;Solution of the Bug&lt;/span&gt;&lt;br /&gt;In the &lt;span style="font-style: italic;"&gt;public void initializeFrom(ILaunchConfiguration configuration) &lt;/span&gt;method&lt;span style="font-style: italic;"&gt;, org.eclipse.wst.server.ui.ServerLaunchConfiguration&lt;/span&gt; Class, sets the ILaunchConfigurationWorkingCopy (Detail - See Screenshot below)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_dESFzmUrwJ4/SddrvpxchWI/AAAAAAAAADM/BElDHmL5vms/s1600-h/p1.gif"&gt;&lt;img style="cursor: pointer; width: 400px; height: 228px;" src="http://4.bp.blogspot.com/_dESFzmUrwJ4/SddrvpxchWI/AAAAAAAAADM/BElDHmL5vms/s400/p1.gif" alt="" id="BLOGGER_PHOTO_ID_5320839951172797794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Shelley, please confirm the fix.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7268273675548895335-277589836918922311?l=wb-os.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wb-os.blogspot.com/feeds/277589836918922311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wb-os.blogspot.com/2009/04/possible-fix-bug-137822-part-i.html#comment-form' title='36 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default/277589836918922311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default/277589836918922311'/><link rel='alternate' type='text/html' href='http://wb-os.blogspot.com/2009/04/possible-fix-bug-137822-part-i.html' title='Possible Fix - Bug 137822 - Part I'/><author><name>ping9</name><uri>http://www.blogger.com/profile/05290501577460943332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_dESFzmUrwJ4/SddrvpxchWI/AAAAAAAAADM/BElDHmL5vms/s72-c/p1.gif' height='72' width='72'/><thr:total>36</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7268273675548895335.post-2502949604826599528</id><published>2009-04-01T20:30:00.000-07:00</published><updated>2009-04-01T21:52:20.429-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WTP - Bug'/><title type='text'>Fixed Bug 240698 - Part I</title><content type='html'>At the beginning of this course,  I want to fix the bug 243799. After I investigated the bug  and posted my analysis in Bugzilla and newsgroup, no one replies me. Therefore, I decide to change my bug. I choose the bug 240698 from the bug list that proposed by Jordan.&lt;br /&gt;&lt;br /&gt;Kevin Vu, one of my classmate recently work on this bug and post some analysis in his blog&lt;br /&gt;http://kvuhome.blogspot.com/&lt;br /&gt;&lt;br /&gt;From reading Kevin's blog, I get a lot of hints.&lt;br /&gt;&lt;br /&gt;Here is what causes the bug and how do I solve it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Cause of the Bug&lt;/span&gt;&lt;br /&gt;The Save Source Window pops up twice to ask user to save the modification.&lt;br /&gt;In the StartAction, method&lt;br /&gt;void start(IServer server, String launchMode, final Shell shell)&lt;br /&gt;           if (!ServerUIPlugin.saveEditors()) (Step 1)&lt;br /&gt;                          return;&lt;br /&gt;          server.start(launchMode, (IOperationListener)null); (Step 2)&lt;br /&gt;&lt;br /&gt;The ServerUIPlugin.saveEditors() (In Step 1) asks the user to Save Source before the server get launched (In Step 2).&lt;br /&gt;&lt;br /&gt;The user makes a selection in the first Pop Up Save Source Dialog (Yes, No, Cancel)&lt;br /&gt;&lt;br /&gt;For our case,  I choose No in the Pop Up Save Source Dialog&lt;br /&gt;&lt;br /&gt;and then the server is going to launch by calling server.start(launchMode, (IOperationListener)null); (Step 2)&lt;br /&gt;&lt;br /&gt;In the org.eclipse.debug.core.ILaunchConfiguration&lt;br /&gt;launch(java.lang.String, org.eclipse.core.runtime.IProgressMonitor, boolean, boolean) method&lt;br /&gt;&lt;br /&gt;there is progress monitor thread which monitor the Server Launch&lt;br /&gt;&lt;br /&gt;Setup progress monitor&lt;br /&gt; Step 1    * - Prepare delegate (0)&lt;br /&gt; Step 2    * - Pre-launch check (1)&lt;br /&gt; Step 3    * - [Build before launch (7)]                    if build&lt;br /&gt; Step 4    * - [Incremental build before launch (3)]        if build&lt;br /&gt; Step 5    * - Final launch validation (1)&lt;br /&gt; Step 6    * - Initialize source locator (1)&lt;br /&gt; Step 7    * - Launch delegate (10) */&lt;br /&gt;&lt;br /&gt;In the Step2, Pre-Launch check, it is a CLASS file. When the pre-launch runs, it will ask the user to save any changes if there is any modification in the server editor. Because in the first Pop-up Save Source Window, we choose NO, the pre-Launch will ask the user to save it again. If the user choose yes in the first Save Source Dialog, the pre-Launch will not ask the user to save it because there is no modification in the server editor. This explains why the Save Source Dialog pop up twice when we clicks NO in the first Save Source Dialog.&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;Solution to the Bug&lt;/span&gt;&lt;br /&gt;Two Changes:&lt;br /&gt;  1. Get rid of           if (!ServerUIPlugin.saveEditors())&lt;br /&gt;                                                              return;&lt;br /&gt;            it is duplicated with the pre-Launch&lt;br /&gt;  2. If we get rid of the code above, it will cause another problem. What if we choose cancel button from the Save Source Dialog in the pre-Launch. The pre-Launch will be interrupted and return Launch to the Server Class.&lt;br /&gt;      It will cause IStatus startImpl(String launchMode, IProgressMonitor monitor) throw a error message&lt;br /&gt;      I add a constrain to the condtion if (!monitor.isCanceled() &amp;amp;&amp;amp; getServerState() == IServer.STATE_STOPPED &amp;amp;&amp;amp; getLaunch().getSourceLocator() != null). It seems work&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Beyond this bug, I find something is odd. If I add a new server and use the default ports to start the server (Default Port Number Below), the server will throw a CoreException  (See Screen Below)&lt;br /&gt;        Tomcat Admin: 8005&lt;br /&gt;        Http/1.1: 8080&lt;br /&gt;        AJP/1.3:8009&lt;br /&gt;&lt;br /&gt;&lt;img src="file:///C:/DOCUME%7E1/cs/LOCALS%7E1/Temp/moz-screenshot.jpg" alt="" /&gt;&lt;img src="file:///C:/DOCUME%7E1/cs/LOCALS%7E1/Temp/moz-screenshot-1.jpg" alt="" /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_dESFzmUrwJ4/SdQ-YDuPD_I/AAAAAAAAADE/CXWzvCkiNdU/s1600-h/concern.gif"&gt;&lt;img style="cursor: pointer; width: 400px; height: 230px;" src="http://2.bp.blogspot.com/_dESFzmUrwJ4/SdQ-YDuPD_I/AAAAAAAAADE/CXWzvCkiNdU/s400/concern.gif" alt="" id="BLOGGER_PHOTO_ID_5319945642868412402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I will post this concern in the newsgroup later and create a fixed patch for the bug 240698 (hopefully run unit test before upload it) .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7268273675548895335-2502949604826599528?l=wb-os.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wb-os.blogspot.com/feeds/2502949604826599528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wb-os.blogspot.com/2009/04/fixed-bug-240698-part-i.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default/2502949604826599528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default/2502949604826599528'/><link rel='alternate' type='text/html' href='http://wb-os.blogspot.com/2009/04/fixed-bug-240698-part-i.html' title='Fixed Bug 240698 - Part I'/><author><name>ping9</name><uri>http://www.blogger.com/profile/05290501577460943332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_dESFzmUrwJ4/SdQ-YDuPD_I/AAAAAAAAADE/CXWzvCkiNdU/s72-c/concern.gif' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7268273675548895335.post-7388780965989552461</id><published>2009-03-23T09:36:00.000-07:00</published><updated>2009-03-23T09:40:43.725-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WTP - Bug'/><title type='text'>Bug 243799 - Analysis II</title><content type='html'>&lt;pre class="bz_comment_text" id="comment_text_2"&gt;After looked the code, I think the problem is that the test2.xsd IDOModel only&lt;br /&gt;includes test1.xsd IDOM Element at first time and the test2.xsd trigger its&lt;br /&gt;listener to represent all elements in the Editor. If I changed something in the&lt;br /&gt;test1.xsd IDOModel, it triggers its listener and represent itself. The&lt;br /&gt;test1.xsd IDOModel, itself does not know it has been included by test2.xsd.&lt;br /&gt;There is no way notify test2.xsd changing synchronously. Therefore, I guess we&lt;br /&gt;need IDOM Manager which manages both IDOModel, but how ?.......I already posted&lt;br /&gt;the question on Bigzilla. Waiting for&lt;span style="font-style: italic;"&gt; Valentin's reply.&lt;/span&gt;&lt;span class="bz_comment_head"&gt;&lt;i&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="mailto:vbaciu@ca.ibm.com"&gt;&lt;/a&gt;&lt;/i&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7268273675548895335-7388780965989552461?l=wb-os.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wb-os.blogspot.com/feeds/7388780965989552461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wb-os.blogspot.com/2009/03/bug-243799-analysis-ii.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default/7388780965989552461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default/7388780965989552461'/><link rel='alternate' type='text/html' href='http://wb-os.blogspot.com/2009/03/bug-243799-analysis-ii.html' title='Bug 243799 - Analysis II'/><author><name>ping9</name><uri>http://www.blogger.com/profile/05290501577460943332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7268273675548895335.post-7120242363501566318</id><published>2009-02-24T16:24:00.000-08:00</published><updated>2009-03-01T13:36:29.394-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WTP - Bug'/><title type='text'>Bug 243799 - Analysis I</title><content type='html'>It takes a long time to make a second post in regard to Bug 243799. From now on, I will escalate my progress on investigating the bug and post my progress accordingly.  Frankly as working on the bug in the past few days, I find out that the bug itself is so complicated. A complicated bug means I can learn more things from it.&lt;br /&gt;&lt;br /&gt;At this time, I comprehend what causes the bug but I do not find a good way to fix it.&lt;br /&gt;&lt;br /&gt;Let me go through this bug and explain what causes the bug&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The description of the bug&lt;/span&gt;&lt;br /&gt;We have two xml schema files (test1.xsd and test2.xsd) in a eclipse editor. When we include one of the schema files(test1.xsd)  into the another schema file(test2.xsd), all the elements and attributes in the schema (test1.xsd) supposes to be included by the test2.xsd. It only works for one time when I intially include test1.xsd into test2.xsd.&lt;br /&gt;Assuming that test2.xsd includes test1.xsd,  if we modify or add some elements and attributes in the test1.xsd and all the elements and attributes in the test2.xsd must be modify or add because test2.xsd contains test1.xsd. The bug is that the elements in the test2.xsd is not responding as the elements in test1.xsd is changing from obersving the user interface.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Before we continue on, let us get  concepts&lt;/span&gt;&lt;br /&gt;The &lt;b&gt;Document Object Model&lt;/b&gt; (&lt;b&gt;DOM&lt;/b&gt;) is a platform- and &lt;a href="http://en.wikipedia.org/wiki/Programming_language" title="Programming language"&gt;language&lt;/a&gt;-independent standard &lt;a href="http://en.wikipedia.org/wiki/Object_model" title="Object model"&gt;object model&lt;/a&gt; for representing &lt;a href="http://en.wikipedia.org/wiki/HTML" title="HTML"&gt;HTML&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/XML" title="XML"&gt;XML&lt;/a&gt; documents as well as an &lt;a href="http://en.wikipedia.org/wiki/Application_Programming_Interface" title="Application Programming Interface" class="mw-redirect"&gt;Application Programming Interface&lt;/a&gt; (API) for querying, traversing and manipulating such documents. (http://en.wikipedia.org/wiki/Document_Object_Model)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;What is &lt;/span&gt;&lt;span style=""&gt;&lt;span style="font-weight: bold;"&gt;org.w3c.dom.Node ?&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;The &lt;code&gt;Node&lt;/code&gt; interface is the primary datatype for the entire   Document Object Model. It represents a single node in the document tree.   While all objects implementing the &lt;code&gt;Node&lt;/code&gt; interface expose   methods for dealing with children, not all objects implementing the   &lt;code&gt;Node&lt;/code&gt; interface may have children. For example,   &lt;code&gt;Text&lt;/code&gt; nodes may not have children, and adding children to   such nodes results in a &lt;code&gt;DOMException&lt;/code&gt; being raised.  (http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Node.html)&lt;br /&gt;&lt;br /&gt;IDOMNode implements the interfaces IndexedRegion and &lt;span style=""&gt;org.w3c.dom.Node (See Diagram Below)&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.blogjava.net/images/blogjava_net/zhuxing/model_07.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 553px; height: 252px;" src="http://www.blogjava.net/images/blogjava_net/zhuxing/model_07.JPG" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt; &lt;/h2&gt;&lt;br /&gt;&lt;br /&gt;IDOMModel implement the interface IStructuredModel. Dom Node List constructs IDOMDocument and IDODocument constructs IDOMModel.  (See Diagram Below)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.blogjava.net/images/blogjava_net/zhuxing/model_10.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 553px; height: 252px;" src="http://www.blogjava.net/images/blogjava_net/zhuxing/model_10.JPG" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt; &lt;/h2&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;IDOMNode can add or append childNode&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.blogjava.net/images/blogjava_net/zhuxing/model_16.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 553px; height: 252px;" src="http://www.blogjava.net/images/blogjava_net/zhuxing/model_16.JPG" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt; &lt;/h2&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Make a big picture&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://matrix.senecac.on.ca/%7Elyang42/Pictures/IDOMNode%20Diagram.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 1165px; height: 625px;" src="http://matrix.senecac.on.ca/%7Elyang42/Pictures/IDOMNode%20Diagram.gif" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2&gt; &lt;/h2&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;TestSchema2.xsd itself is a IDOMNode&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To be continue in Bug 243799 - Analysis II .....................&lt;br /&gt;&lt;br /&gt;If my concept is wrong, please point it out so I can correct it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7268273675548895335-7120242363501566318?l=wb-os.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wb-os.blogspot.com/feeds/7120242363501566318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wb-os.blogspot.com/2009/02/bug-243799-analysis-i.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default/7120242363501566318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default/7120242363501566318'/><link rel='alternate' type='text/html' href='http://wb-os.blogspot.com/2009/02/bug-243799-analysis-i.html' title='Bug 243799 - Analysis I'/><author><name>ping9</name><uri>http://www.blogger.com/profile/05290501577460943332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7268273675548895335.post-4122110015436004796</id><published>2009-01-31T14:40:00.000-08:00</published><updated>2009-01-31T18:27:00.980-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WTP - Bug'/><title type='text'>Reproduce the Eclipse WTP Bug 243799</title><content type='html'>&lt;span style="font-family:verdana;"&gt;I reproduce the Eclipse WTP Bug 243799. First off, I try to reproduce the Bug 243927 but it is not reproduced successfully. From viewing the Bug 243927,  a commenter named Valentin&lt;/span&gt;&lt;span class="bz_comment_head"  style="font-family:verdana;"&gt; points out that the Bug 243799 is  &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;similar with Bug 243927. Therefore, I want to try some luck to reproduce the Bug 243799 because they are similar and I do not need to spend more time on analyzing it. Finally, I succeed to reproduce the Bug 243799. Formally, let me introduce the Bug 243799 and my target is going to fix it within two months. Hopefully ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The progress of fixing the bug will be posted in this blog so visited me frequently if you are interested in it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=243799"&gt;WTP - Bug 243799&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Steps to Reproduce&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="bz_comment_text"&gt;1.  Have 2 xsd files, TestSchema1.xsd and TestSchema2.xsd, where&lt;br /&gt;TestSchema2.xsd includes TestSchema1.xsd.&lt;br /&gt;&lt;br /&gt;2.  Open both xsd files in Eclipse.&lt;br /&gt;&lt;br /&gt;3.  Verify that both xsd files validate properly.&lt;br /&gt;&lt;br /&gt;4.  Add a new type to TestSchema1.xsd and validate the updated schema.&lt;br /&gt;&lt;br /&gt;5.  Switch back to TestSchema2.xsd and attempt to use content assist to user&lt;br /&gt;the new type added in step 4.&lt;br /&gt;&lt;br /&gt;6.  Regardless of whether content assist is triggered automatically (e.g. add a&lt;br /&gt;new element or attribute and then enter the type parameter leading content&lt;br /&gt;assist to pop-up with the available types) or manually (via ctrl-space inside&lt;br /&gt;the quotes of the type parameter), the new type entered in step 4 is not&lt;br /&gt;visibile for content assist.&lt;br /&gt;&lt;br /&gt;7.  If you manually enter the new type from step 4 however, the validation is&lt;br /&gt;successful.  However, even after this content assist still doesn't make the new&lt;br /&gt;type visible.&lt;br /&gt;&lt;br /&gt;8.  If TestSchema2.xsd is closed and then re-opened in Eclipse, content assist&lt;br /&gt;now properly sees the the new type.&lt;br /&gt;&lt;br /&gt;9.  Directly related, if you instead remove a type from TestSchema1.xsd in step&lt;br /&gt;4, then the TestSchema2.xsd editor's content assist continues to show the&lt;br /&gt;removed type even though it is no longer visible and validation fails.&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7268273675548895335-4122110015436004796?l=wb-os.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wb-os.blogspot.com/feeds/4122110015436004796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wb-os.blogspot.com/2009/01/reproduce-eclipse-wtp-bug-243799.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default/4122110015436004796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7268273675548895335/posts/default/4122110015436004796'/><link rel='alternate' type='text/html' href='http://wb-os.blogspot.com/2009/01/reproduce-eclipse-wtp-bug-243799.html' title='Reproduce the Eclipse WTP Bug 243799'/><author><name>ping9</name><uri>http://www.blogger.com/profile/05290501577460943332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry></feed>
