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.model.common.di.renderer
Class DIRendererUtil

    java.lang.Object
      org.eclipse.emf.ecp.view.model.common.di.renderer.DIRendererUtil

    public final class DIRendererUtil

extends Object

Utility methods for implementing depdendency injection renderers.

Author:
  jfaltermeier

Method Summary
`static org.eclipse.e4.core.contexts.IEclipseContext` | `getContextForElement(VElement element, ViewModelContext context)` Returns the `IEclipseContext` for the given `VElement`.
`static Object` | `render(Object pojo, VElement element, ViewModelContext context)` Renders the given pojo.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getContextForElement

    public static org.eclipse.e4.core.contexts.IEclipseContext getContextForElement(VElement element,
                                                                                    ViewModelContext context)

  Returns the `IEclipseContext` for the given `VElement`. If there is no context yet, one will be created.

  Parameters:
    `element` - the element
    `context` - the `ViewModelContext`
  Returns:
    the eclipse context

### render

    public static Object render(Object pojo,
                                VElement element,
                                ViewModelContext context)

  Renders the given pojo.

  Parameters:
    `pojo` - the renderer pojo
    `element` - the `VElement` to render
    `context` - the `ViewModelContext`
  Returns:
    the rendering result (Control/Composite)

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.