Class PreviewWorkspaceViewProvider

  • All Implemented Interfaces:
    IViewProvider

    public class PreviewWorkspaceViewProvider
    extends java.lang.Object
    implements IViewProvider
    The IViewProvider provides views from the workspace.
    Author:
    Eugen Neufeld
    • Constructor Detail

      • PreviewWorkspaceViewProvider

        public PreviewWorkspaceViewProvider()
        Constructor.
    • Method Detail

      • addViewModel

        public void addViewModel​(org.eclipse.core.runtime.IPath path)
        Add a new view model path to the list of available views in the preview.
        Parameters:
        path - The IPath to load
      • removeViewModel

        public void removeViewModel​(org.eclipse.core.runtime.IPath path)
        Remove a view model path from the list of available views in the preview.
        Parameters:
        path - The IPath to remove
      • canProvideViewModel

        public double canProvideViewModel​(org.eclipse.emf.ecore.EObject eObject,
                                          VViewModelProperties properties)
        Description copied from interface: IViewProvider
        Called to check whether the provider can provide a VView for an EObject.
        Specified by:
        canProvideViewModel in interface IViewProvider
        Parameters:
        eObject - the EObject to create a
        properties - the properties for providing the view
        Returns:
        a positive double indicating how well this provider is fitted to provide a VView for the provided EObject or IViewProvider.NOT_APPLICABLE if it doesn't fit
      • dispose

        public void dispose()
        Clean the used resources.