Class BmMultilanguageFormatModel

    • Constructor Detail

      • BmMultilanguageFormatModel

        public BmMultilanguageFormatModel​(org.eclipse.emf.ecore.EObject object,
                                          org.eclipse.emf.ecore.EStructuralFeature feature,
                                          org.eclipse.emf.ecore.EStructuralFeature editFormatFeature,
                                          IV8Project v8project,
                                          IEditingLanguageManager languageManager)
        Creates a new model.
        Parameters:
        object - the object, cannot be null.
        feature - the feature, cannot be null.
        editFormatFeature - the related 'edit format' feature to change , cannot be null.
        projectParameters - the project parameters, cannot be null.
        languageManager - the language manager, cannot be null.
    • Method Detail

      • createTask

        protected IModelApiTaskN<Void> createTask​(IBmObject object,
                                                  org.eclipse.emf.ecore.EStructuralFeature feature,
                                                  Map<String,​String> valueToApply)
        Description copied from class: BmMap
        Creates an IModelApiTaskN that executes during applying changes.
        Overrides:
        createTask in class BmMap<String,​String>
        Parameters:
        object - the object to change, cannot be null.
        feature - the feature the feature to change, cannot be null.
        valueToApply - the value to apply.
        Returns:
        the created IModelApiTaskN.
      • setObjectValue

        protected void setObjectValue​(org.eclipse.emf.ecore.EObject object,
                                      org.eclipse.emf.ecore.EStructuralFeature feature,
                                      Map<String,​String> valueToApply)
        Description copied from class: BmMap
        Sets the new value of the provided model object feature during the commit.
        The method is invoked within the task, so the given objects have the relevant state (e.g. attached to transaction).
        Overrides:
        setObjectValue in class BmMap<String,​String>
        Parameters:
        object - the object to set new value, cannot be null.
        feature - the feture to set, cannot be null.
        valueToApply - the new value to set, can be null.