Jump to: navigation, search

SCDL Editor in STP.SC

Two steps:

  • Register scdl file as XML type using the Context Type extesion
  • Register sca schema with schema validator

plugin.xml in org.eclipse.stp.sc.sca

<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.2"?> <plugin>

  <extension point="org.eclipse.core.runtime.contentTypes">
       <file-association  content-type="org.eclipse.core.runtime.xml" 
           file-extensions="scdl"/>
     </extension>    
   <extension point = "org.eclipse.wst.xml.core.catalogContributions">
    <catalogContribution id="default">
      <uri name="http://www.osoa.org/xmlns/sca/1.0" uri="xsd/sca.xsd"/>
    </catalogContribution>
    </extension>

</plugin>



Johnson Ma