Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Method Summary
`static VView` | `getView(org.eclipse.emf.ecore.EObject eObject, Map<String,Object> context)` 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,
                                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` for
    `context` - 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

Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2015. All Rights Reserved.