Skip to content

Package: ECPProjectContentChangedObserver

ECPProjectContentChangedObserver

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2012 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.core.util.observer;
15:
16: import java.util.Collection;
17:
18: import org.eclipse.emf.ecp.core.ECPProject;
19:
20: /**
21: * This Observer is called to notify listeners about changes of objects in a project. The caller can return objects that
22: * are also affected by the object change.
23: *
24: * @author Eugen Neufeld
25: *
26: */
27: public interface ECPProjectContentChangedObserver extends ECPObserver {
28:
29:         /**
30:          * Return an Collection affected Objects.
31:          *
32:          * @param project the {@link ECPProject} where the change occurred
33:          * @param objects the objects that changed
34:          * @return Collection of affected Objects
35:          */
36:         Collection<Object> objectsChanged(ECPProject project, Collection<Object> objects);
37: }