Skip to content

Package: RuleServiceHelper

RuleServiceHelper

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: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.spi.rule;
15:
16: import java.util.Set;
17:
18: import org.eclipse.emf.ecore.EStructuralFeature.Setting;
19: import org.eclipse.emf.ecp.view.spi.model.VElement;
20:
21: /**
22: * @author Eugen Neufeld
23: * @since 1.2
24: * @noimplement This interface is not intended to be implemented by clients.
25: * @noextend This interface is not intended to be extended by clients.
26: *
27: */
28: public interface RuleServiceHelper {
29:
30:         /**
31:          * Gets the involved {@link org.eclipse.emf.ecore.EObject EObject}s that would be hidden
32:          * or disabled if {@code newValue} would be set.
33:          *
34:          * @param <T>
35:          * the type of the returned {@link org.eclipse.emf.ecore.EObject EObject}s
36:          *
37:          * @param setting
38:          * the current setting
39:          * @param newValue
40:          * the new value which may be set
41:          * @param renderableClass
42:          * the class type that has to be matched. Used for filtering the result set
43:          * @return the involved {@link VElement}s that match the given type {@code T}
44:          * @since 1.5
45:          */
46:         <T extends VElement> Set<T> getInvolvedEObjects(Setting setting, Object newValue, Class<T> renderableClass);
47: }