2010-10-26 Francois Chouinard <fchouinard@gmail.com> Contribution for Bug309042
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / parsers / custom / CustomXmlTraceDefinition.java
index c6f8b285538f32e97fab4751a56ea0ecce6699ae..a1efbcfe31df1729fef87b4069bb0f39d99f707a 100644 (file)
@@ -180,7 +180,8 @@ public class CustomXmlTraceDefinition extends CustomTraceDefinition {
             \r
             // The following allows xml parsing without access to the dtd\r
             EntityResolver resolver = new EntityResolver () {\r
-                public InputSource resolveEntity (String publicId, String systemId) {\r
+                @Override\r
+                               public InputSource resolveEntity (String publicId, String systemId) {\r
                     String empty = "";\r
                     ByteArrayInputStream bais = new ByteArrayInputStream(empty.getBytes());\r
                     return new InputSource(bais);\r
@@ -190,9 +191,12 @@ public class CustomXmlTraceDefinition extends CustomTraceDefinition {
 \r
             // The following catches xml parsing exceptions\r
             db.setErrorHandler(new ErrorHandler(){\r
-                public void error(SAXParseException saxparseexception) throws SAXException {}\r
-                public void warning(SAXParseException saxparseexception) throws SAXException {}\r
-                public void fatalError(SAXParseException saxparseexception) throws SAXException {\r
+                @Override\r
+                               public void error(SAXParseException saxparseexception) throws SAXException {}\r
+                @Override\r
+                               public void warning(SAXParseException saxparseexception) throws SAXException {}\r
+                @Override\r
+                               public void fatalError(SAXParseException saxparseexception) throws SAXException {\r
                     throw saxparseexception;\r
                 }});\r
             \r
@@ -320,7 +324,8 @@ public class CustomXmlTraceDefinition extends CustomTraceDefinition {
 \r
             // The following allows xml parsing without access to the dtd\r
             EntityResolver resolver = new EntityResolver () {\r
-                public InputSource resolveEntity (String publicId, String systemId) {\r
+                @Override\r
+                               public InputSource resolveEntity (String publicId, String systemId) {\r
                     String empty = "";\r
                     ByteArrayInputStream bais = new ByteArrayInputStream(empty.getBytes());\r
                     return new InputSource(bais);\r
@@ -330,9 +335,12 @@ public class CustomXmlTraceDefinition extends CustomTraceDefinition {
 \r
             // The following catches xml parsing exceptions\r
             db.setErrorHandler(new ErrorHandler(){\r
-                public void error(SAXParseException saxparseexception) throws SAXException {}\r
-                public void warning(SAXParseException saxparseexception) throws SAXException {}\r
-                public void fatalError(SAXParseException saxparseexception) throws SAXException {\r
+                @Override\r
+                               public void error(SAXParseException saxparseexception) throws SAXException {}\r
+                @Override\r
+                               public void warning(SAXParseException saxparseexception) throws SAXException {}\r
+                @Override\r
+                               public void fatalError(SAXParseException saxparseexception) throws SAXException {\r
                     throw saxparseexception;\r
                 }});\r
 \r
@@ -376,7 +384,8 @@ public class CustomXmlTraceDefinition extends CustomTraceDefinition {
 \r
             // The following allows xml parsing without access to the dtd\r
             EntityResolver resolver = new EntityResolver () {\r
-                public InputSource resolveEntity (String publicId, String systemId) {\r
+                @Override\r
+                               public InputSource resolveEntity (String publicId, String systemId) {\r
                     String empty = "";\r
                     ByteArrayInputStream bais = new ByteArrayInputStream(empty.getBytes());\r
                     return new InputSource(bais);\r
@@ -386,9 +395,12 @@ public class CustomXmlTraceDefinition extends CustomTraceDefinition {
 \r
             // The following catches xml parsing exceptions\r
             db.setErrorHandler(new ErrorHandler(){\r
-                public void error(SAXParseException saxparseexception) throws SAXException {}\r
-                public void warning(SAXParseException saxparseexception) throws SAXException {}\r
-                public void fatalError(SAXParseException saxparseexception) throws SAXException {\r
+                @Override\r
+                               public void error(SAXParseException saxparseexception) throws SAXException {}\r
+                @Override\r
+                               public void warning(SAXParseException saxparseexception) throws SAXException {}\r
+                @Override\r
+                               public void fatalError(SAXParseException saxparseexception) throws SAXException {\r
                     throw saxparseexception;\r
                 }});\r
 \r
@@ -498,7 +510,8 @@ public class CustomXmlTraceDefinition extends CustomTraceDefinition {
 \r
             // The following allows xml parsing without access to the dtd\r
             EntityResolver resolver = new EntityResolver () {\r
-                public InputSource resolveEntity (String publicId, String systemId) {\r
+                @Override\r
+                               public InputSource resolveEntity (String publicId, String systemId) {\r
                     String empty = "";\r
                     ByteArrayInputStream bais = new ByteArrayInputStream(empty.getBytes());\r
                     return new InputSource(bais);\r
@@ -508,9 +521,12 @@ public class CustomXmlTraceDefinition extends CustomTraceDefinition {
 \r
             // The following catches xml parsing exceptions\r
             db.setErrorHandler(new ErrorHandler(){\r
-                public void error(SAXParseException saxparseexception) throws SAXException {}\r
-                public void warning(SAXParseException saxparseexception) throws SAXException {}\r
-                public void fatalError(SAXParseException saxparseexception) throws SAXException {\r
+                @Override\r
+                               public void error(SAXParseException saxparseexception) throws SAXException {}\r
+                @Override\r
+                               public void warning(SAXParseException saxparseexception) throws SAXException {}\r
+                @Override\r
+                               public void fatalError(SAXParseException saxparseexception) throws SAXException {\r
                     throw saxparseexception;\r
                 }});\r
 \r
This page took 0.024575 seconds and 5 git commands to generate.