How to add XSD directory to Eclipse directly

I am developing a plugin for Eclipse, one of the possibilities is the ability to edit XML. To do this, I need to add XSD to the Eclipse directory. Is there an easy way to add the XSD directory to Eclipse directly (I mean directly through the code)

0
source share
1 answer

You can use the org.eclipse.wst.xml.core.catalogContributions extension point (this requires that you have the Eclipse Web Tools (WST) component installed.

The following is the contribution of the org.eclipse.wst.xsd.core plugin:

 <extension point="org.eclipse.wst.xml.core.catalogContributions"> <catalogContribution id="default"> <uri name="http://www.w3.org/2001/XMLSchema" uri="platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/XMLSchema.xsd" /> <system systemId="http://www.w3.org/2001/xml.xsd" uri="platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/xml.xsd"/> </catalogContribution> </extension> 
+1
source

Source: https://habr.com/ru/post/1333466/


All Articles