Difference between revisions of "User:TerryChen"
Line 66: | Line 66: | ||
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 '''NewXMLWizard.java''' and found the following code on creating xml document in performFinish() </li> | <li>Checked '''NewXMLWizard.java''' and found the following code on creating xml document in performFinish() </li> | ||
− | if (getContainer().getCurrentPage() == selectRootElementPage) | + | if (getContainer().getCurrentPage() == selectRootElementPage) {<br/> |
generator.createXMLDocument(newFile, xmlFileName);<br/> | generator.createXMLDocument(newFile, xmlFileName);<br/> | ||
− | + | |<br/> | |
− | else | + | else {<br/> |
// put template contents into file<br/> | // put template contents into file<br/> | ||
String templateString = fNewXMLTemplatesWizardPage.getTemplateString();<br/> | String templateString = fNewXMLTemplatesWizardPage.getTemplateString();<br/> | ||
generator.createTemplateXMLDocument(newFile, templateString);<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:34, 8 July 2009
- Name: Terry(Jiachang) Chen
- Program: CPAC
Contacts |
---|
- Email: jchen124@learn.senecac.on.ca
- Blog: http://t3rrychan.blogspot.com/
- IRC Nickname: TerryChan
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
- Chose Bug 245698, Normal, P3
- Reproduced Bug 245698
- Blog OSD 700 Project - Bug 245698
Week 04
- Analyzed the errors of the XML file generated from web-jsptaglibrary_2_1.xsd
- Followed the XML Schema Tutorial from w3c schools
Week 05
- Found out the cause of Bug 245698
- Blog Cause of Bug245698
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
if (getContainer().getCurrentPage() == selectRootElementPage) {
generator.createXMLDocument(newFile, xmlFileName);
|
else {
// put template contents into file
String templateString = fNewXMLTemplatesWizardPage.getTemplateString();
generator.createTemplateXMLDocument(newFile, templateString);
|