org.eclipse.emf.ecp.view.spi.provider
Class ViewProviderHelper

java.lang.Object
  extended by 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

Method Summary
static VView getView(org.eclipse.emf.ecore.EObject eObject)
          This allows to retrieve a VView based on an EObject.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getView

public static VView getView(org.eclipse.emf.ecore.EObject eObject)
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 for
Returns:
a view model for the given EObject or null if no suited provider could be found


Copyright © 2014. All Rights Reserved.