osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
39 stars 8 forks source link

Setting a modal path to in-mode does not reflect change #1493

Closed RyanMcilnay closed 6 years ago

RyanMcilnay commented 6 years ago

Summary

When setting a modal path to in-mode using the graphical editor AADL properties view, no change occurs. The in-mode looks like it is set and then removed simultaneously. We suspect it has something to do with the latest changes made for #1449.

Steps to Reproduce

  1. Create type classifier
  2. Create mode, feature, and flow spec
  3. Select the flow spec
  4. Open properties view
  5. Click the mode in the in-mode section
package Test
public
    abstract t
        features
            feat: in feature;
        flows
            f_sink: flow sink feat;
        modes
            m1: mode;
    end t;
end Test;

Environment

philip-alldredge commented 6 years ago

This is a regression from 2.3.4. I suspect it has something to do with out Xtext updates the resource after changes to the model. The model change does not cause a change in the AADL source.

@RyanMcilnay please open an issue for creating an automated test to detect such regressions.