Package: AbstractSimpleFilter
AbstractSimpleFilter
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AbstractSimpleFilter() |
|
|
|
|
|
||||||||||||||||||||
ignoreDiagnostic(EObject, Diagnostic) |
|
|
|
|
|
Coverage
1: /*******************************************************************************
2: * Copyright (c) 2011-2017 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: * Mat Hansen - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.common.spi.validation.filter;
15:
16: import org.eclipse.emf.common.util.Diagnostic;
17: import org.eclipse.emf.ecore.EObject;
18:
19: /**
20: * Convenience class for custom filters. Helps to reduce clutter.
21: *
22: * @author Mat Hansen <mhansen@eclipsesource.com>
23: */
24: public abstract class AbstractSimpleFilter implements ObjectFilter, DiagnosticFilter {
25:
26:         @Override
27:         public boolean ignoreDiagnostic(EObject eObject, Diagnostic diagnostic) {
28:                 return false;
29:         }
30:
31: }