Interface IFilterBySubsystemsManager


  • public interface IFilterBySubsystemsManager
    The service responsible for filtering metadata objects by subsystems.
    • Method Detail

      • getSelectedSubsystems

        Set<Subsystem> getSelectedSubsystems​(FilterBySubsystemsSettings settings)
        Returns the all selected subsystems for the given filter settings.
        Parameters:
        settings - the given filter settings, cannot be null
        Returns:
        the selected subsystems set, never null
      • getSelectedSubsystems

        Set<Subsystem> getSelectedSubsystems​(FilterBySubsystemsSettings settings,
                                             IDtProject project)
        Returns the selected subsystems for the given filter settings and project.
        Parameters:
        settings - the given filter settings, cannot be null
        project - the project to get selected subsystems for, cannot be null
        Returns:
        the selected subsystems set, never null
      • getFilterSettings

        FilterBySubsystemsSettings getFilterSettings​(FilterBySubsystemsData data)
        Returns the filter settings for the given filter data.
        Parameters:
        data - the given filter data, cannot be null
        Returns:
        the builded filter settings for the given filter data, never null
      • getFilterData

        FilterBySubsystemsData getFilterData​(FilterBySubsystemsSettings settings)
        Returns the filter data for the given filter settings.
        Parameters:
        settings - the given filter settings, cannot be null
        Returns:
        the filter data for the given filter settings, never null
      • saveState

        void saveState​(FilterBySubsystemsData data,
                       org.eclipse.ui.IMemento memento)
        Saves the filter data to memento.
        Parameters:
        data - the filter data to save, cannot be null
        memento - the memento to save in, cannot be null
      • loadState

        FilterBySubsystemsData loadState​(org.eclipse.ui.IMemento memento)
        Loads the filter data from memento.
        Parameters:
        memento - the memento to load from, cannot be null
        Returns:
        the filter data or null if the is no subsystem filter data
      • getSubsystemsTrie

        EObjectTrie getSubsystemsTrie​(org.eclipse.core.resources.IProject project)
        Returns the EObjectTrie representing the subsystems keeping the objects order for given IProject.
        Parameters:
        project - the project to get subsystems trie for, cannot be null
        Returns:
        the subsystems trie, never null
      • getCheckedSubsystems

        Set<Subsystem> getCheckedSubsystems​(FilterBySubsystemsSettings settings,
                                            IDtProject project)
        Returns the actual checked subsystems for the given filter settings and project.
        Parameters:
        settings - the given filter settings, cannot be null
        project - the project to get selected subsystems for, cannot be null
        Returns:
        the actual checked subsystems set, never null
      • getDtProject

        IDtProject getDtProject​(Subsystem subsystem)
        Returns the IDtProject contained the specified subsystem
        Parameters:
        subsystem - the given subsystem, cannot be null
        Returns:
        the project with specified subsystem, or null if given subsystem not in any project