org.eclipse.emf.ecp.view.spi.provider
Class ViewProviderHelper
java.lang.Object
org.eclipse.emf.ecp.view.spi.provider.ViewProviderHelper
public final class ViewProviderHelper
- extends Object
Util class for retrieving a VView based on an EObject.
- Since:
- 1.2
- Author:
- Eugen Neufeld
getView
public static VView getView(org.eclipse.emf.ecore.EObject eObject,
Map<String,Object> context)
- This allows to retrieve a
VView based on an EObject. This method reads all IViewProviders and searches for the best fitting. If none can be found, then null is returned.
- Parameters:
eObject - the EObject to find a VView forcontext - a key-value-map from String to Object
- Returns:
- a view model for the given
EObject or null if no suited provider could be found
Copyright © 2015. All Rights Reserved.