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.
Difference between revisions of "SCDL Editor in STP.SC"
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: | Here are what i defined in org.eclipse.stp.sc.sca plugin: | ||
Line 9: | Line 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 19: | ||
</catalogContribution> | </catalogContribution> | ||
</extension> | </extension> | ||
+ | </plugin> | ||
+ | |||
− | |||
Johnson Ma | Johnson Ma |
Revision as of 00:17, 22 January 2007
Two steps:
- Register scdl file as XML type using the Context Type extesion
- Register sca schema with schema validator
Here are what i defined in org.eclipse.stp.sc.sca plugin:
<?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