diff options
Diffstat (limited to 'plugins/infra/org.eclipse.papyrus.infra.constraints/src/org/eclipse/papyrus/infra/constraints/runtime/ConstraintEngineListener.java')
-rw-r--r-- | plugins/infra/org.eclipse.papyrus.infra.constraints/src/org/eclipse/papyrus/infra/constraints/runtime/ConstraintEngineListener.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/infra/org.eclipse.papyrus.infra.constraints/src/org/eclipse/papyrus/infra/constraints/runtime/ConstraintEngineListener.java b/plugins/infra/org.eclipse.papyrus.infra.constraints/src/org/eclipse/papyrus/infra/constraints/runtime/ConstraintEngineListener.java new file mode 100644 index 00000000000..65f0e5d70e8 --- /dev/null +++ b/plugins/infra/org.eclipse.papyrus.infra.constraints/src/org/eclipse/papyrus/infra/constraints/runtime/ConstraintEngineListener.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2014 CEA and others. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Christian W. Damus (CEA) - Initial API and implementation + * + */ +package org.eclipse.papyrus.infra.constraints.runtime; + +import java.util.EventListener; + + +/** + * Protocol for notifications of changes in the constraint listener that may affect its clients. + */ +public interface ConstraintEngineListener extends EventListener { + + /** + * Notifies listeners that the engine's constraints have changed, so any remembered calculation results may need to be recomputed. + * + * @param event + * the notification object + */ + void constraintsChanged(ConstraintsChangedEvent event); +} |