Class ConfigurationStandaloneContentModel

All Implemented Interfaces:
IEditableModel, IModel, IValidable, IModelApiAwareModel, IDynamicTreeModel<Object>

public class ConfigurationStandaloneContentModel extends NavigatorTreeModel implements IModelApiAwareModel
The AEF 2.0 component for the configuration standalone content.
  • Constructor Details

    • 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 Details

    • getInput

      public Object getInput()
      Specified by:
      getInput in interface IDynamicTreeModel<Object>
      Overrides:
      getInput in class NavigatorTreeModel
      Returns:
      the input for content provider
    • getModelApi

      public IModelApi getModelApi()
      Description copied from interface: IModelApiAwareModel
      Returns the model API.
      Specified by:
      getModelApi in interface IModelApiAwareModel
      Returns:
      the model API or null if it is not set.
    • setModelApi

      public void setModelApi(IModelApi modelApi)
      Description copied from interface: IModelApiAwareModel
      Sets the specified API to the model.
      Specified by:
      setModelApi in interface IModelApiAwareModel
      Parameters:
      modelApi - the API, can be null.
    • 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.
    • createLabelProvider

      protected ILabelProvider createLabelProvider()
      Description copied from class: NavigatorTreeModel
      Creates label provider.
      Overrides:
      createLabelProvider in class NavigatorTreeModel
      Returns:
      the label provider, cannot be 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