Class ChecksViewerProvider


  • public class ChecksViewerProvider
    extends Object
    Check viewer common provider.
    • Constructor Detail

      • ChecksViewerProvider

        public ChecksViewerProvider​(ICheckRepository checkRepository,
                                    org.eclipse.core.resources.IProject project,
                                    Function<IChecksTreeNode,​Boolean> treeFilter)
        Creates new provider instance.
        Parameters:
        checkRepository - the check repository, cannot be null
        project - the project, can be null
        treeFilter - tree filter supplier, can be null
    • Method Detail

      • init

        public void init()
        Initializes checks tree content provider
      • getCheckRepository

        public ICheckRepository getCheckRepository()
        Provides check repository
        Returns:
        the check repository, cannot be null
      • getProject

        public org.eclipse.core.resources.IProject getProject()
        Provides project
        Returns:
        the project, can be null
      • getDataBindingContext

        public org.eclipse.core.databinding.DataBindingContext getDataBindingContext()
        Provides data binding context
        Returns:
        data binding context, cannot be null
      • getCheckFilter

        public com._1c.g5.v8.dt.internal.ui.validation.CheckFilter getCheckFilter()
        Provides check filter
        Returns:
        the check filter, cannot be null
      • getChecksTreeProvider

        public com._1c.g5.v8.dt.internal.ui.validation.ChecksTreeProvider getChecksTreeProvider()
        Provides check tree content provider
        Returns:
        the tree content provider, cannot be null
      • getLastSelectedProfile

        public String getLastSelectedProfile()
        Provides the last selected profile string
        Returns:
        the last selected profile, can be null
      • setLastSelectedProfile

        public void setLastSelectedProfile​(String lastSelectedProfile)
        Sets the last selected profile string
        Parameters:
        lastSelectedProfile - the last selected profile, can be null
      • getAvailableProfiles

        public org.eclipse.core.databinding.observable.list.IObservableList<String> getAvailableProfiles()
        Provides the observable list of available profiles
        Returns:
        the list of availble profiles, cannot be null
      • getActiveSettingsProfileObservable

        public org.eclipse.core.databinding.observable.value.IObservableValue<String> getActiveSettingsProfileObservable()
        Provides the observable value of the active settings profile
        Returns:
        the observable value of the active settings profile, never null