Class ViewProviderImpl

    • Constructor Detail

      • ViewProviderImpl

        public ViewProviderImpl()
    • Method Detail

      • activate

        protected void activate()
        Component activate method.
      • getView

        public VView getView​(org.eclipse.emf.ecore.EObject object,
                             VViewModelProperties properties,
                             java.util.Collection<java.lang.String> requiredKeys)
        Description copied from interface: EMFFormsFilteredViewService
        Retrieve a VView for a domain model object from the most confident of my registered view providers.
        Specified by:
        getView in interface EMFFormsFilteredViewService
        Parameters:
        object - the domain model object for which a view is to be requested
        properties - the properties for providing the view, that may or may not include matching filters
        requiredKeys - a subset (possibly empty) of the keys in the properties that must be matched by any view model that I would provide. If any of these keys does not match a view model, then that view model must not be provided. Otherwise, it may just be less preferred than some other view model that does match
        Returns:
        a view model for the given domain model object or null if no suitable provider could be found to provide one
      • setReportService

        protected void setReportService​(ReportService reportService)
        Set the ReportService.
        Parameters:
        reportService - The ReportService