diff options
author | nitind | 2008-03-25 18:12:28 +0000 |
---|---|---|
committer | nitind | 2008-03-25 18:12:28 +0000 |
commit | 14e0c2a7a219198e2f02695573351913cea2e40f (patch) | |
tree | c50c6244ca1e256a7ad207a879b85b86493a4862 /bundles/org.eclipse.wst.sse.core/src/org/eclipse | |
parent | 124ec24ba9eb04d0cd474357f60fffdf6edd7f96 (diff) | |
download | webtools.sourceediting-14e0c2a7a219198e2f02695573351913cea2e40f.tar.gz webtools.sourceediting-14e0c2a7a219198e2f02695573351913cea2e40f.tar.xz webtools.sourceediting-14e0c2a7a219198e2f02695573351913cea2e40f.zip |
[221606] Make (HTML) validation message severity user controllable
Diffstat (limited to 'bundles/org.eclipse.wst.sse.core/src/org/eclipse')
3 files changed, 32 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ErrorInfo.java b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ErrorInfo.java new file mode 100644 index 0000000000..d36b92cb9b --- /dev/null +++ b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ErrorInfo.java @@ -0,0 +1,26 @@ +/******************************************************************************* + * Copyright (c) 2004, 2008 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.wst.sse.core.internal.validate; + + + +public interface ErrorInfo { + + public String getHint(); + + public int getLength(); + + public int getOffset(); + + public int getState(); + + public short getTargetType(); +} diff --git a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ValidationMessage.java b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ValidationMessage.java index 9339e52df3..5f2f6057a4 100644 --- a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ValidationMessage.java +++ b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ValidationMessage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. + * Copyright (c) 2001, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -17,6 +17,7 @@ package org.eclipse.wst.sse.core.internal.validate; /** */ public class ValidationMessage { + public static final int IGNORE = -1; public static final int ERROR = 1; public static final int INFORMATION = 3; public static final int WARNING = 2; diff --git a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ValidationReporter.java b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ValidationReporter.java index 934f77972f..82a06b576d 100644 --- a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ValidationReporter.java +++ b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/validate/ValidationReporter.java @@ -14,6 +14,7 @@ package org.eclipse.wst.sse.core.internal.validate; + /** */ public interface ValidationReporter { @@ -21,4 +22,7 @@ public interface ValidationReporter { /** */ void report(ValidationMessage message); + + void report(ErrorInfo info); + } |