Skip to content

Commit

Permalink
Update #32 Old EP removal and add of two new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar WALDMANN committed Jun 21, 2017
1 parent 127b61a commit 14d16fe
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 19 deletions.
4 changes: 3 additions & 1 deletion fr.cnes.analysis.tools.analyzer/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: fr.cnes.analysis.tools.analyzer;uses:="org.osgi.framework,org.eclipse.core.runtime.jobs,org.eclipse.core.runtime",
fr.cnes.analysis.tools.analyzer.datas;uses:="org.eclipse.core.runtime",
fr.cnes.analysis.tools.analyzer.exception
fr.cnes.analysis.tools.analyzer.exception,
fr.cnes.analysis.tools.analyzer.services.checkers,
fr.cnes.analysis.tools.analyzer.services.languages
Import-Package: org.junit
Bundle-Vendor: CNES
Bundle-ClassPath: .
3 changes: 2 additions & 1 deletion fr.cnes.analysis.tools.analyzer/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension-point id="fr.cnes.analysis.tools.analyzer" name="fr.cnes.analysis.tools.analyzer" schema="schema/fr.cnes.analysis.tools.analyzer.exsd"/>
<extension-point id="fr.cnes.analysis.tools.languages" name="languages" schema="schema/fr.cnes.analysis.tools.languages.exsd"/>
<extension-point id="fr.cnes.analysis.tools.checks" name="checks" schema="schema/fr.cnes.analysis.tools.checks.exsd"/>
<extension
id="application"
point="org.eclipse.core.runtime.applications">
Expand Down
29 changes: 12 additions & 17 deletions ...hema/fr.cnes.analysis.tools.analyzer.exsd → ...schema/fr.cnes.analysis.tools.checks.exsd
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<schema targetNamespace="fr.cnes.analysis.tools.analyzer" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="fr.cnes.analysis.tools.analyzer" id="fr.cnes.analysis.tools.analyzer" name="fr.cnes.analysis.tools.analyzer"/>
<meta.schema plugin="fr.cnes.analysis.tools.analyzer" id="fr.cnes.analysis.tools.checks" name="checks"/>
</appinfo>
<documentation>
[Enter description of this extension point.]
Expand All @@ -17,8 +17,8 @@
</appinfo>
</annotation>
<complexType>
<sequence minOccurs="1" maxOccurs="unbounded">
<element ref="analyzer"/>
<sequence>
<element ref="check" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
Expand All @@ -27,14 +27,14 @@
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<attribute name="id" type="string" use="required">
<annotation>
<documentation>

</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<attribute name="name" type="string" use="required">
<annotation>
<documentation>

Expand All @@ -47,38 +47,33 @@
</complexType>
</element>

<element name="analyzer">
<element name="check">
<complexType>
<sequence>
<element ref="fileExtension" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>

</documentation>
</annotation>
</attribute>
<attribute name="extensionId" type="string" use="required">
<attribute name="name" type="string" use="required">
<annotation>
<documentation>

</documentation>
</annotation>
</attribute>
<attribute name="name" type="string" use="required">
<attribute name="class" type="string" use="required">
<annotation>
<documentation>

</documentation>
<appinfo>
<meta.attribute kind="java" basedOn="fr.cnes.analysis.tools.analyzer.datas.AbstractChecker:"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>

<element name="fileExtension">
<complexType>
<attribute name="name" type="string">
<attribute name="languageId" type="string" use="required">
<annotation>
<documentation>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="fr.cnes.analysis.tools.analyzer" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="fr.cnes.analysis.tools.analyzer" id="fr.cnes.analysis.tools.language" name="language"/>
</appinfo>
<documentation>
This extension point defines languages handled by the analyzer.
</documentation>
</annotation>

<element name="language">
<complexType>
<sequence>
<element ref="fileExtension" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>

</documentation>
</annotation>
</attribute>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>

</documentation>
</annotation>
</attribute>
</complexType>
</element>

<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<sequence>
<element ref="language" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>

</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>

</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>

</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>

<element name="fileExtension">
<complexType>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>

</documentation>
</annotation>
</attribute>
</complexType>
</element>

<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
3.0
</documentation>
</annotation>

<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
[Enter extension point usage example here.]
</documentation>
</annotation>

<annotation>
<appinfo>
<meta.section type="apiinfo"/>
</appinfo>
<documentation>
[Enter API information here.]
</documentation>
</annotation>

<annotation>
<appinfo>
<meta.section type="implementation"/>
</appinfo>
<documentation>
[Enter information about supplied implementation of this extension point.]
</documentation>
</annotation>


</schema>

0 comments on commit 14d16fe

Please sign in to comment.