public class PreviewWorkspaceViewProvider extends Object implements IViewProvider
NOT_APPLICABLE| Constructor and Description |
|---|
PreviewWorkspaceViewProvider()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addViewModel(org.eclipse.core.runtime.IPath path)
Add a new view model path to the list of available views in the preview.
|
double |
canProvideViewModel(org.eclipse.emf.ecore.EObject eObject,
VViewModelProperties properties)
Called to check whether the provider can provide a
VView for an EObject. |
void |
dispose()
Clean the used resources.
|
VView |
provideViewModel(org.eclipse.emf.ecore.EObject eObject,
VViewModelProperties properties)
This method is only called if
IViewProvider.canProvideViewModel(EObject, VViewModelProperties) returned the highest
positive
number of all IViewProviders. |
void |
removeViewModel(org.eclipse.core.runtime.IPath path)
Remove a view model path from the list of available views in the preview.
|
public void addViewModel(org.eclipse.core.runtime.IPath path)
path - The IPath to loadpublic void removeViewModel(org.eclipse.core.runtime.IPath path)
path - The IPath to removepublic double canProvideViewModel(org.eclipse.emf.ecore.EObject eObject,
VViewModelProperties properties)
IViewProviderVView for an EObject.canProvideViewModel in interface IViewProvidereObject - the EObject to create aproperties - the properties for providing the viewVView for the
provided EObject or IViewProvider.NOT_APPLICABLE if it doesn't fitpublic VView provideViewModel(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
IViewProviderIViewProvider.canProvideViewModel(EObject, VViewModelProperties) returned the highest
positive
number of all IViewProviders.
It must then return a VView to the EObject.provideViewModel in interface IViewProvidereObject - the EObject to generate the VView forproperties - the properties for providing the viewVViewpublic void dispose()
Copyright © 2020. All rights reserved.