Class ConfigurationStandaloneContentModel

    • Constructor Detail

      • ConfigurationStandaloneContentModel

        public ConfigurationStandaloneContentModel​(Configuration configuration,
                                                   org.eclipse.core.resources.IProject project,
                                                   org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider,
                                                   IFilteredNavigatorContentProvider filteredNavigatorContentProvider)
        Initializes a new instance of the class.
        Parameters:
        configuration - the configuration, can't be null
        project - the project, can't be null
        qualifiedNameProvider - the qualified name provider, can't be null
        filteredNavigatorContentProvider - the filtered navigator content provider, can't be null
    • Method Detail

      • getConfiguration

        public Configuration getConfiguration()
        Gets a configuration for model.
        Returns:
        the configuration, never null.
      • getQualifiedNameProvider

        public org.eclipse.xtext.naming.IQualifiedNameProvider getQualifiedNameProvider()
        Gets a qualified name provider for model.
        Returns:
        the qualified name provider, never null.
      • getFilteredNavigatorContentProvider

        public IFilteredNavigatorContentProvider getFilteredNavigatorContentProvider()
        Gets a filtered navigator content provider.
        Returns:
        the filtered navigator content provider, never null.
      • getExchangePlan

        protected ExchangePlan getExchangePlan()
        Returns standalone content exchange settings exchange plan if present.
        Returns:
        the exchange settings exchange plan if present, null otherwise
      • getDataExchangeSettings

        protected StandaloneContentDataExchangeSettings getDataExchangeSettings()
        Returns standalone content exchange settings.
        Returns:
        the exchange settings, can be null
      • findNoCodeCorrections

        protected boolean findNoCodeCorrections​(MdObject mdObject)
        Checks if metadata object content item present in the exchange plan content.
        Parameters:
        mdObject - the metadata object, cannot be null
        Returns:
        true if metadata object content item present, false otherwise
      • findContentItem

        protected Optional<ExchangePlanContentItem> findContentItem​(MdObject mdObject)
        Finds the content item for the provided metadata object in exchange plan content.
        Parameters:
        mdObject - the metadata object, cannot be null
        Returns:
        the optional content item for the provided metadata object
      • setPriority

        protected void setPriority​(MdObject mdObject,
                                   StandaloneContentItemPriority newPriority)
        Sets content item priority.
        Parameters:
        mdObject - the md-object to set priority, cannot be null
        newPriority - the new priority, cannot be null
      • editExchangePlanContent

        protected void editExchangePlanContent​(MdObject mdObject,
                                               Boolean add)
        Adds/removes exchange plan content.
        Parameters:
        mdObject - the md-object to add/remove, cannot be null
        add - true to add, false remove
      • editExchangePlanContent

        protected void editExchangePlanContent​(MdObject mdObject,
                                               AutoRegistrationChanges changes)
        Sets auto registration changes.
        Parameters:
        mdObject - the md-object to set changes value, cannot be null
        changes - the changes, cannot be null
      • setAutoCorrectCode

        protected void setAutoCorrectCode​(MdObject mdObject,
                                          Boolean correct)
        Sets auto correct code.
        Parameters:
        mdObject - the md-object to correct code, cannot be null
        correct - true to correct, false otherwise