Skip to content

Package: ECPProjectContentTouchedObserver

ECPProjectContentTouchedObserver

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.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 when objects of an project are touched. Touching means changed or affected indirectly by the
22: * change. This implies that the objects might not have changed any of their attributes or references. Should be mainly
23: * used to update UI correctly. This Observer is notified after the {@link ECPProjectContentChangedObserver}. It will
24: * also get all Elements that where affected by the change.
25: *
26: * @author Eugen Neufeld
27: *
28: */
29: public interface ECPProjectContentTouchedObserver extends ECPObserver {
30:         /**
31:          * This is called when objects of a project changed.
32:          *
33:          * @param project the project where the changed occurred.
34:          * @param objects the objects that changed and the objects affected by the change
35:          * @param structural whether the change was structural that is changes to containment references
36:          */
37:         void contentTouched(ECPProject project, Collection<Object> objects, boolean structural);
38:
39: }