Skip to content

Package: ViewValidationListener

ViewValidationListener

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Johannes Faltermeier - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.spi.validation;
15:
16: import java.util.Set;
17:
18: import org.eclipse.emf.common.util.Diagnostic;
19:
20: /**
21: * Listens for new validation results.
22: *
23: * @author jfaltermeier
24: * @since 1.5
25: *
26: */
27: public interface ViewValidationListener {
28:
29:         // TODO this comment doesn't really fit to the actual functionality (imho)
30:         /**
31:          * Returns validation results if the validation severity is higher than {@link Diagnostic#OK}. If there are no
32:          * severities higher than OK an empty Set is returned.
33:          *
34:          * @param validationResults all diagnostics
35:          */
36:         void onNewValidation(Set<Diagnostic> validationResults);
37: }