Skip to content

Package: GlobalViewModelService

GlobalViewModelService

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2014 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.context;
15:
16: /**
17: * A ViewModelService which is instantiated only in the root context.
18: *
19: * @author Eugen Neufeld
20: * @since 1.5
21: *
22: */
23: public interface GlobalViewModelService extends ViewModelService {
24:
25:         /**
26:          * This method is called whenever a new {@link ViewModelContext} is added as a child context to the root
27:          * {@link ViewModelContext} this {@link GlobalViewModelService} belongs to.
28:          *
29:          * @param childContext The {@link ViewModelContext} that was added.
30:          */
31:         void childViewModelContextAdded(ViewModelContext childContext);
32: }