diff options
Diffstat (limited to 'subprojects/viatra-runtime-base/src/main/java/tools/refinery/viatra/runtime/base/api/LightweightEObjectObserver.java')
-rw-r--r-- | subprojects/viatra-runtime-base/src/main/java/tools/refinery/viatra/runtime/base/api/LightweightEObjectObserver.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/subprojects/viatra-runtime-base/src/main/java/tools/refinery/viatra/runtime/base/api/LightweightEObjectObserver.java b/subprojects/viatra-runtime-base/src/main/java/tools/refinery/viatra/runtime/base/api/LightweightEObjectObserver.java new file mode 100644 index 00000000..f0245b5d --- /dev/null +++ b/subprojects/viatra-runtime-base/src/main/java/tools/refinery/viatra/runtime/base/api/LightweightEObjectObserver.java | |||
@@ -0,0 +1,32 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010-2013, Abel Hegedus, Istvan Rath and Daniel Varro | ||
3 | * This program and the accompanying materials are made available under the | ||
4 | * terms of the Eclipse Public License v. 2.0 which is available at | ||
5 | * http://www.eclipse.org/legal/epl-v20.html. | ||
6 | * | ||
7 | * SPDX-License-Identifier: EPL-2.0 | ||
8 | *******************************************************************************/ | ||
9 | package tools.refinery.viatra.runtime.base.api; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
12 | import org.eclipse.emf.ecore.EObject; | ||
13 | import org.eclipse.emf.ecore.EStructuralFeature; | ||
14 | |||
15 | |||
16 | /** | ||
17 | * Listener interface for lightweight observation on EObject feature value changes. | ||
18 | * | ||
19 | * @author Abel Hegedus | ||
20 | * | ||
21 | */ | ||
22 | public interface LightweightEObjectObserver { | ||
23 | |||
24 | /** | ||
25 | * | ||
26 | * @param host | ||
27 | * @param feature | ||
28 | * @param notification | ||
29 | */ | ||
30 | void notifyFeatureChanged(EObject host, EStructuralFeature feature, Notification notification); | ||
31 | |||
32 | } | ||