Interface IBmEmfIndexManager


  • public interface IBmEmfIndexManager
    Unified EMF index manager for all active projects in the workspace.
    • Method Detail

      • addEmfIndexProvider

        IBmEmfIndexProvider addEmfIndexProvider​(IBmModel model,
                                                org.eclipse.core.resources.IProject project)
        Add a new index provider for the given BM model and project.
        Parameters:
        model - The model to add provider to. May not be null
        project - The project to associate provider with. May be null
        Returns:
        The newly created provider instance. May not be null
      • getEmfIndexProvider

        IBmEmfIndexProvider getEmfIndexProvider​(org.eclipse.core.resources.IProject project)
        Gets a specific EMF index provider bound to the provided project.
        Parameters:
        project - The project to get provider for.
        Returns:
        The BM Emf Index provider.
      • getEmfIndexProvider

        IBmEmfIndexProvider getEmfIndexProvider​(IBmModel model)
        Gets a specific EMF index provider bound to the provided BM model.
        Parameters:
        project - The model to get provider for.
        Returns:
        The BM Emf Index provider.
      • getRegisteredProviders

        List<IBmEmfIndexProvider> getRegisteredProviders()
        Gets the list of all registered EMF index providers.
        Returns:
        The list of EMF index providers being registered at the moment.
      • removeEmfIndexProvider

        void removeEmfIndexProvider​(IBmModel model,
                                    org.eclipse.core.resources.IProject project)
        Removes an existing provider from the manager control.
        Parameters:
        model - The model to remove provider for.
        project - The project this provider is bound to. May be null.
      • getStateChangeEventBroker

        org.eclipse.xtext.ui.notification.IStateChangeEventBroker getStateChangeEventBroker()
        Gets actual IStateChangeEventBroker
        Returns:
        actual IStateChangeEventBroker, or null if IStateChangeEventBroker wasn't initialized