Skip to content

Package: IncrementalValidationService

IncrementalValidationService

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2019 Christian W. Damus 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: * Christian W. Damus - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.spi.validation;
15:
16: /**
17: * Optional mix-in interface for a {@link ValidationService} that supports
18: * reporting of {@linkplain ValidationUpdateListener incremental updates}.
19: *
20: * @since 1.22
21: */
22: public interface IncrementalValidationService {
23:
24:         /**
25:          * Register a listener for incremental validation updates.
26:          *
27:          * @param listener the incremental validation listener
28:          */
29:         void registerValidationUpdateListener(ValidationUpdateListener listener);
30:
31:         /**
32:          * De-register a listener for incremental validation updates.
33:          *
34:          * @param listener the incremental validation listener
35:          */
36:         void deregisterValidationUpdateListener(ValidationUpdateListener listener);
37:
38: }