Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Blackburn2009-06-28 14:03:45 +0000
committerJames Blackburn2009-06-28 14:03:45 +0000
commit16ad8a31727868a2f4e682fe7e89b6c6673e74fa (patch)
tree9c385385756e2636be5b3acff747900f7feb0251 /core/org.eclipse.cdt.core/schema
parentf4081e6fc935acbbf2f3e69666a59be89b2cc80b (diff)
downloadorg.eclipse.cdt-16ad8a31727868a2f4e682fe7e89b6c6673e74fa.tar.gz
org.eclipse.cdt-16ad8a31727868a2f4e682fe7e89b6c6673e74fa.tar.xz
org.eclipse.cdt-16ad8a31727868a2f4e682fe7e89b6c6673e74fa.zip
Bug 189109 Add ErrorParser extension point schema
Diffstat (limited to 'core/org.eclipse.cdt.core/schema')
-rw-r--r--core/org.eclipse.cdt.core/schema/ErrorParser.exsd139
1 files changed, 139 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/schema/ErrorParser.exsd b/core/org.eclipse.cdt.core/schema/ErrorParser.exsd
new file mode 100644
index 00000000000..a4ce450e13c
--- /dev/null
+++ b/core/org.eclipse.cdt.core/schema/ErrorParser.exsd
@@ -0,0 +1,139 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.cdt.core" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.eclipse.cdt.core" id="ErrorParser" name="ErrorParser"/>
+ </appInfo>
+ <documentation>
+ This extension point is used to contribute a new Error Parser. A Error Parser is used to parse errors/warnings/info from build output and populate Problems View with them.
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="errorparser"/>
+ </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>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="errorparser">
+ <complexType>
+ <attribute name="class" type="string" use="required">
+ <annotation>
+ <documentation>
+ a fully qualified name of the Java class that implements &lt;samp&gt;org.eclipse.cdt.core.IErrorParser&lt;/samp&gt; interface.
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.cdt.core.IErrorParser"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ CDT 1.2
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ &lt;br/&gt;
+package org.eclipse.cdt.example.errorparser;&lt;br/&gt;
+&lt;br/&gt;
+import org.eclipse.cdt.core.IMarkerGenerator;&lt;br/&gt;
+import org.eclipse.cdt.core.errorparsers.AbstractErrorParser;&lt;br/&gt;
+import org.eclipse.cdt.core.errorparsers.ErrorPattern;&lt;br/&gt;
+&lt;br/&gt;
+/**&lt;br/&gt;
+ * Simple error parser parsing lines of kind &quot;FILE,LINE:error DESCRIPTION&quot;&lt;br/&gt;
+ * Enable the errorparser in project Properties-&gt;C/C++ Build-&gt;Settings-&gt;Error Parsers&lt;br/&gt;
+ */&lt;br/&gt;
+public class SampleErrorParser extends AbstractErrorParser {&lt;br/&gt;
+ private static final ErrorPattern[] patterns = {&lt;br/&gt;
+ new ErrorPattern(&quot;(.*),(.*):error (.*)&quot;, 1, 2, 3, 0, IMarkerGenerator.SEVERITY_ERROR_RESOURCE),&lt;br/&gt;
+ new ErrorPattern(&quot;(.*),(.*):warning (.*)&quot;, 1, 2, 3, 0, IMarkerGenerator.SEVERITY_WARNING),&lt;br/&gt;
+ new ErrorPattern(&quot;(.*),(.*):info (.*)&quot;, 1, 2, 3, 0, IMarkerGenerator.SEVERITY_INFO),&lt;br/&gt;
+ };&lt;br/&gt;
+ /**&lt;br/&gt;
+ * Constructor to set the error pattern.&lt;br/&gt;
+ */&lt;br/&gt;
+ public SampleErrorParser() {&lt;br/&gt;
+ super(patterns);&lt;br/&gt;
+ }&lt;br/&gt;
+}&lt;br/&gt;
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiinfo"/>
+ </appInfo>
+ <documentation>
+ Plug-ins that want to extend this extension point must implement &lt;samp&gt;org.eclipse.cdt.core.IErrorParser&lt;/samp&gt; interface.
+&lt;br/&gt;
+It is recommended to extend &lt;samp&gt;org.eclipse.cdt.core.errorparsers.AbstractErrorParser&lt;/samp&gt; for most cases.
+&lt;br/&gt;
+ErrorParsers dealing with multi-line messages should implement &lt;samp&gt;org.eclipse.cdt.core.IErrorParser2&lt;/samp&gt; interface.
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ For another example of implementation see org.eclipse.cdt.internal.errorparsers.GCCErrorParser
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="copyright"/>
+ </appInfo>
+ <documentation>
+ Copyright (c) 2005, 2009 Andrew Gvozdev (Quoin Inc.) and others.&lt;br/&gt;
+All rights reserved. This program and the accompanying materials&lt;br/&gt;
+are made available under the terms of the Eclipse Public License v1.0&lt;br/&gt;
+which accompanies this distribution, and is available at&lt;br/&gt;
+http://www.eclipse.org/legal/epl-v10.html&lt;br/&gt;
+
+ </documentation>
+ </annotation>
+
+</schema> \ No newline at end of file

Back to the top