Difference between revisions of "User:TerryChen"

From CDOT Wiki
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 96: Line 96:
 
<ul>
 
<ul>
 
   <li>Checked the code for createing attributes for an element in '''XSDImpl.java'''</li>
 
   <li>Checked the code for createing attributes for an element in '''XSDImpl.java'''</li>
         org.eclipse.wst.xsd.core > src-contentmodel > org.eclipse.wst.xsd.contentmodel.internal > XSDImpl.java > ElementDeclarationBaseImpl > getAttributes()<br/>
+
         org.eclipse.wst.xsd.core > src-contentmodel > org.eclipse.wst.xsd.contentmodel.internal > <br/>
 +
        XSDImpl.java > ElementDeclarationBaseImpl > getAttributes()<br/>
 
   <li>Blog [http://t3rrychan.blogspot.com/2009/08/exploring-xsdcore.html Exploring xsd.core]</li>
 
   <li>Blog [http://t3rrychan.blogspot.com/2009/08/exploring-xsdcore.html Exploring xsd.core]</li>
 +
</ul>
 +
<br/>
 +
<h4>Week 12</h4>
 +
<ul>
 +
  <li>Tried to create a quick patch for [https://bugs.eclipse.org/bugs/show_bug.cgi?id=245698 Bug 245698] by changing the getAttrName function under XSDAttributeUseAdapter in XSDImpl.java to the following</li>
 +
    public String getAttrName()<br/>
 +
    {<br/>
 +
    &nbsp;&nbsp;String attrName = xsdAttributeUse.getAttributeDeclaration().getName();<br/>
 +
    &nbsp;&nbsp;if (attrName.equals("lang") == true)<br/>
 +
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;attrName = "xml:lang";<br/> 
 +
    &nbsp;&nbsp;return attrName;<br/>
 +
    }<br/>
 
</ul>
 
</ul>

Latest revision as of 05:02, 19 August 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 NewXMLWizard.java and NewXMLGenerator.java 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 the code for the action listener of finish button on New XML Wizard in NewXMLWizard.java
  • Checked the code for generate new XML document in NEWXMLGenerator.java


Week 08

  • Checked the code for DOMContentBuilderImpl.java in org.eclipse.wst.xml.core
  •     org.eclipse.wst.xml.core > scr-contentmodel > org.eclipse.wst.xml.core.internal.contentmodel.util > DOMContentBuilderImpl.java
  • Checked the code for creating root content of the XML document in DOMContentBuilderImpl.java
  • Checked the code for creating xml elements in DOMContentBuilderImpl.java
  • Checked the code for creating xml attributes in DOMContentBuilderImpl.java


Week 09


Week 10

  • Checked out org.eclipse.wst.xsd.core
  • Checked the code for calculating the name space in XSDImpl.java
  •        org.eclipse.wst.xsd.core > src-contentmodel > org.eclipse.wst.xsd.contentmodel.internal > XSDImpl.java > XSDSchemaAdapter > getProperty()
  • Blog move from xml.core to xsd.core


Week 11

  • Checked the code for createing attributes for an element in XSDImpl.java
  •        org.eclipse.wst.xsd.core > src-contentmodel > org.eclipse.wst.xsd.contentmodel.internal > 
    XSDImpl.java > ElementDeclarationBaseImpl > getAttributes()
  • Blog Exploring xsd.core


Week 12

  • Tried to create a quick patch for Bug 245698 by changing the getAttrName function under XSDAttributeUseAdapter in XSDImpl.java to the following
  •    public String getAttrName()
    {
      String attrName = xsdAttributeUse.getAttributeDeclaration().getName();
      if (attrName.equals("lang") == true)
         attrName = "xml:lang";
      return attrName;
    }