Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "SCDL Editor in STP.SC"

 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
Two steps:  
 
Two steps:  
 
* Register scdl file as XML type using the Context Type extesion
 
* Register scdl file as XML type using the Context Type extesion
 
 
* Register sca schema with schema validator
 
* Register sca schema with schema validator
Here are what i defined in org.eclipse.stp.sc.sca plugin:
 
 
   
 
   
 +
{| border="1"
 +
| <dl>
 +
<dt>plugin.xml in org.eclipse.stp.sc.sca</dt>
 +
<dd>
  
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?eclipse version="3.2"?>
 
<?eclipse version="3.2"?>
 
<plugin>
 
<plugin>
 
 
   <!-- register scdl XML content type in Eclipse -->
 
   <!-- register scdl XML content type in Eclipse -->
 
   <extension point="org.eclipse.core.runtime.contentTypes">
 
   <extension point="org.eclipse.core.runtime.contentTypes">
 
         <file-association  content-type="org.eclipse.core.runtime.xml"  
 
         <file-association  content-type="org.eclipse.core.runtime.xml"  
 
             file-extensions="scdl"/>
 
             file-extensions="scdl"/>
       </extension>
+
       </extension>  
   
+
 
     <!-- add SCA schemas to wst schema validator in Eclipse -->   
 
     <!-- add SCA schemas to wst schema validator in Eclipse -->   
 
     <extension point = "org.eclipse.wst.xml.core.catalogContributions">
 
     <extension point = "org.eclipse.wst.xml.core.catalogContributions">
Line 22: Line 22:
 
     </catalogContribution>
 
     </catalogContribution>
 
     </extension>
 
     </extension>
 
 
</plugin>
 
</plugin>
 +
 +
</dd>
 +
 +
</dl>
 +
|}
 +
 +
 +
  
 
Johnson Ma
 
Johnson Ma

Latest revision as of 01:47, 22 January 2007

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

Back to the top