blob: 50c86c4c525ca63566421cb397f8136c8b32f8f8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011-2015 EclipseSource Muenchen GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Lucas Koehler - initial API and implementation
******************************************************************************/
package org.eclipse.emfforms.spi.swt.core.di;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.emf.ecp.view.spi.context.ViewModelService;
/**
* A {@link EMFFormsContextProvider} is a {@link ViewModelService} that provides and {@link IEclipseContext}.
*
* @author Lucas Koehler
*
*/
public interface EMFFormsContextProvider extends ViewModelService {
/**
* Returns the {@link IEclipseContext}.
*
* @return The {@link IEclipseContext}
*/
IEclipseContext getContext();
/**
* Sets the {@link IEclipseContext}.
*
* @param eclipseContext The {@link IEclipseContext}
*/
void setContext(IEclipseContext eclipseContext);
}