Class DIRendererUtil
- java.lang.Object
-
- org.eclipse.emf.ecp.view.model.common.di.renderer.DIRendererUtil
-
public final class DIRendererUtil extends java.lang.ObjectUtility methods for implementing depdendency injection renderers.- Author:
- jfaltermeier
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.e4.core.contexts.IEclipseContextgetContextForElement(VElement element, ViewModelContext context)Returns theIEclipseContextfor the givenVElement.static java.lang.Objectrender(java.lang.Object pojo, VElement element, ViewModelContext context)Renders the given pojo.
-
-
-
Method Detail
-
getContextForElement
public static org.eclipse.e4.core.contexts.IEclipseContext getContextForElement(VElement element, ViewModelContext context)
Returns theIEclipseContextfor the givenVElement. If there is no context yet, one will be created.- Parameters:
element- the elementcontext- theViewModelContext- Returns:
- the eclipse context
-
render
public static java.lang.Object render(java.lang.Object pojo, VElement element, ViewModelContext context)Renders the given pojo.- Parameters:
pojo- the renderer pojoelement- theVElementto rendercontext- theViewModelContext- Returns:
- the rendering result (Control/Composite)
-
-