org.eclipse.emf.ecp.view.model.provider.xmi
Class ViewModelFileExtensionsManager
java.lang.Object
org.eclipse.emf.ecp.view.model.provider.xmi.ViewModelFileExtensionsManager
public final class ViewModelFileExtensionsManager
- extends Object
- Author:
- Jonas
Manages the view models provided by the file extension point.
getInstance
public static ViewModelFileExtensionsManager getInstance()
- Returns:
- the iNSTANCE
loadResource
public static org.eclipse.emf.ecore.resource.Resource loadResource(org.eclipse.emf.common.util.URI uri)
- Loads a resource containing a view model.
- Parameters:
uri
- a URI containing the path to the file
- Returns:
- the loaded resource
dispose
public static void dispose()
- Disposed the instance.
getExtensionURIS
public static List<org.eclipse.emf.common.util.URI> getExtensionURIS()
- Returns:
- a list of uris of all xmi files registered
hasViewModelFor
public boolean hasViewModelFor(org.eclipse.emf.ecore.EObject eObject)
- Parameters:
eObject
- the object to be rendered
- Returns:
- if there is a xmi file registered containing a view model for the given type
createView
public VView createView(org.eclipse.emf.ecore.EObject eObject)
- Parameters:
eObject
- The EObject
to create a view for
- Returns:
- a view model for the given eObject
Copyright © 2014. All Rights Reserved.