[jbosstools-commits] JBoss Tools SVN: r43428 - trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Wed Sep 5 13:48:28 EDT 2012
Author: vrubezhny
Date: 2012-09-05 13:48:27 -0400 (Wed, 05 Sep 2012)
New Revision: 43428
Added:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ITypedReporter.java
Log:
JBIDE-12418
Sometimes As-You-Type validation isn't invoked after a Java-String that contains EL is Copy-Pasted in Java editor
ITypedReported interface is added
Added: trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ITypedReporter.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ITypedReporter.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ITypedReporter.java 2012-09-05 17:48:27 UTC (rev 43428)
@@ -0,0 +1,48 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.common.validation;
+
+import java.util.Collection;
+/**
+ * Validatior-Type dependent reporter
+ *
+ * @author Victor V. Rubezhny
+ */
+public interface ITypedReporter {
+
+ /**
+ * If a validator processes whole file at once it adds types of its messages using this method
+ *
+ * @param type
+ */
+ void addTypeForFile(String type);
+
+ /**
+ * Returns the types of messages from a 'file'-validators
+ *
+ * @return
+ */
+ Collection<String> getTypesForFile();
+
+ /**
+ * If a validator processes text regions one by one it adds types of its messages using this method
+ *
+ * @param type
+ */
+ void addTypeForRegion(String type);
+
+ /**
+ * Returns the types of messages from a 'region'-validators
+ *
+ * @return
+ */
+ Collection<String> getTypesForRegion();
+}
Property changes on: trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ITypedReporter.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
More information about the jbosstools-commits
mailing list