Class XMIViewModelProvider
- java.lang.Object
-
- org.eclipse.emf.ecp.view.model.provider.xmi.XMIViewModelProvider
-
- All Implemented Interfaces:
IViewProvider
public abstract class XMIViewModelProvider extends java.lang.Object implements IViewProvider
Abstract class to implement a view provider reading the view model from an xmi file.- Author:
- Jonas Helming
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.ecp.view.spi.provider.IViewProvider
NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description XMIViewModelProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.eclipse.emf.common.util.URI
getXMIPath()
VView
provideViewModel(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
This method is only called ifIViewProvider.canProvideViewModel(EObject, VViewModelProperties)
returned the highest positive number of allIViewProviders
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emf.ecp.view.spi.provider.IViewProvider
canProvideViewModel
-
-
-
-
Method Detail
-
provideViewModel
public VView provideViewModel(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
Description copied from interface:IViewProvider
This method is only called ifIViewProvider.canProvideViewModel(EObject, VViewModelProperties)
returned the highest positive number of allIViewProviders
. It must then return aVView
to theEObject
.- Specified by:
provideViewModel
in interfaceIViewProvider
- Parameters:
eObject
- theEObject
to generate theVView
forproperties
- theproperties
for providing the view- Returns:
- the generated
VView
-
getXMIPath
protected abstract org.eclipse.emf.common.util.URI getXMIPath()
- Returns:
- the URI of the xmi file containing the view model
-
-