Difference between revisions of "User:TerryChen"

From CDOT Wiki
Jump to: navigation, search
Line 65: Line 65:
 
   org.eclipse.wst.xml.ui > src-wizards > org.eclipse.wst.xml.ui.internal.wizards > NewXMLWizard.java<br/>
 
   org.eclipse.wst.xml.ui > src-wizards > org.eclipse.wst.xml.ui.internal.wizards > NewXMLWizard.java<br/>
 
   org.eclipse.wst.xml.ui > src-wizards > org.eclipse.wst.xml.ui.internal.wizards > NewXMLGenerator.java
 
   org.eclipse.wst.xml.ui > src-wizards > org.eclipse.wst.xml.ui.internal.wizards > NewXMLGenerator.java
  <li>Checked '''performFinish()''' in '''NewXMLWizard.java'''</li>
+
  <li>Checked '''NewXMLWizard.java''' and found the following code on creating xml document in performFinish() </li>
 +
    if (getContainer().getCurrentPage() == selectRootElementPage) {<br/>
 +
generator.createXMLDocument(newFile, xmlFileName);<br/>
 +
    }<br/>
 +
    else {<br/>
 +
// put template contents into file<br/>
 +
String templateString = fNewXMLTemplatesWizardPage.getTemplateString();<br/>
 +
generator.createTemplateXMLDocument(newFile, templateString);<br/>
 +
    }<br/>
 
  <li>Checked '''createXMLDocument(IFile newFile, String xmlFileName)''' in '''NewXMLGenerator.java'''</li>
 
  <li>Checked '''createXMLDocument(IFile newFile, String xmlFileName)''' in '''NewXMLGenerator.java'''</li>
 
</ul>
 
</ul>
 
<br/>
 
<br/>
 
<h4>Study Week</h4>
 
<h4>Study Week</h4>

Revision as of 17:32, 8 July 2009

About Me

  • Name: Terry(Jiachang) Chen
  • Program: CPAC

Contacts

Weekly Activities

Week 01

  • Created my wiki account
  • Created an account on bugzilla
  • Opened my blog on blogspot.com
  • Installed Chatzilla addon on FireFox


Week 02

  • Downloaded and extract Eclipse RCP/Plug-in Developers
  • Downloaded and extract Eclipse WTP3.1M7
  • Looked for bugs to fix on bugzilla


Week 03


Week 04


Week 05


Week 06

  • Checked out org.eclipse.wst.sse.core
  • Checked out org.eclipse.wst.xml.core
  • Checked out org.eclipse.wst.sse.ui
  • Checked out org.eclipse.wst.xml.ui


Week 07

  • Checked the code for New XML Wizard in org.eclipse.wst.xml.ui
  •   org.eclipse.wst.xml.ui > src-wizards > org.eclipse.wst.xml.ui.internal.wizards > NewXMLWizard.java
    org.eclipse.wst.xml.ui > src-wizards > org.eclipse.wst.xml.ui.internal.wizards > NewXMLGenerator.java
  • Checked NewXMLWizard.java and found the following code on creating xml document in performFinish()
  •     if (getContainer().getCurrentPage() == selectRootElementPage) {

    generator.createXMLDocument(newFile, xmlFileName);

        }
    else {

    // put template contents into file
    String templateString = fNewXMLTemplatesWizardPage.getTemplateString();
    generator.createTemplateXMLDocument(newFile, templateString);

        }
  • Checked createXMLDocument(IFile newFile, String xmlFileName) in NewXMLGenerator.java


Study Week