public final class ViewModelFileExtensionsManager extends Object
Modifier and Type | Method and Description |
---|---|
VView |
createView(org.eclipse.emf.ecore.EObject eObject,
VViewModelProperties properties) |
static void |
dispose()
Disposed the instance.
|
static Map<org.eclipse.emf.common.util.URI,List<org.eclipse.emf.ecp.view.model.provider.xmi.ViewModelFileExtensionsManager.ExtensionDescription>> |
getExtensionURIS() |
static ViewModelFileExtensionsManager |
getInstance() |
boolean |
hasViewModelFor(org.eclipse.emf.ecore.EObject eObject,
VViewModelProperties properties) |
static VViewResourceImpl |
loadResource(org.eclipse.emf.common.util.URI uri)
Loads a resource containing a view model.
|
static void |
setUUIDAsElementId(VViewResourceImpl resource,
VView view)
Sets the UUID mapping from the given resource as the
element id of all elements in the
given view model. |
public static ViewModelFileExtensionsManager getInstance()
public static void setUUIDAsElementId(VViewResourceImpl resource, VView view)
element id
of all elements in the
given view model.resource
- the VViewResourceImpl
-view
- the viewpublic static VViewResourceImpl loadResource(org.eclipse.emf.common.util.URI uri)
uri
- a URI containing the path to the filepublic static void dispose()
public static Map<org.eclipse.emf.common.util.URI,List<org.eclipse.emf.ecp.view.model.provider.xmi.ViewModelFileExtensionsManager.ExtensionDescription>> getExtensionURIS()
public boolean hasViewModelFor(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
eObject
- the object to be renderedproperties
- the properties
public VView createView(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
eObject
- The EObject
to create a view forproperties
- the properties
Copyright © 2016. All rights reserved.