org.eclipse.emf.ecp.view.model.common.di.service
Interface EclipseContextViewService

All Superinterfaces:
ViewModelService
All Known Implementing Classes:
EclipseContextViewServiceImpl

public interface EclipseContextViewService
extends ViewModelService

ViewModelService for registering and retrieving the IEclipseContext associated with a view.

Author:
jfaltermeier

Method Summary
 org.eclipse.e4.core.contexts.IEclipseContext getContext(VElement element)
          Returns the context associated with the given VElement.
 void putContext(VElement element, org.eclipse.e4.core.contexts.IEclipseContext context)
          Sets the context for the VElement.
 
Methods inherited from interface org.eclipse.emf.ecp.view.spi.context.ViewModelService
dispose, getPriority, instantiate
 

Method Detail

putContext

void putContext(VElement element,
                org.eclipse.e4.core.contexts.IEclipseContext context)
Sets the context for the VElement.

Parameters:
element - the element associated with the context
context - the IEclipseContext.

getContext

org.eclipse.e4.core.contexts.IEclipseContext getContext(VElement element)
Returns the context associated with the given VElement.

Parameters:
element - the element for which the IEclipseContext is to be returned.
Returns:
the IEclipseContext


Copyright © 2015. All Rights Reserved.