org.eclipse.emf.ecp.view.model.provider.xmi
Class ViewModelFileExtensionsManager

java.lang.Object
  extended by 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.

Method Summary
 VView createView(org.eclipse.emf.ecore.EObject eObject)
           
static void dispose()
          Disposed the instance.
static List<org.eclipse.emf.common.util.URI> getExtensionURIS()
           
static ViewModelFileExtensionsManager getInstance()
           
 boolean hasViewModelFor(org.eclipse.emf.ecore.EObject eObject)
           
static org.eclipse.emf.ecore.resource.Resource loadResource(org.eclipse.emf.common.util.URI uri)
          Loads a resource containing a view model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.