osate / osate2

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

Classifier information view is not updated when AADL text is edited and saved #2435

Closed lwrage closed 4 years ago

lwrage commented 4 years ago

Summary

Changes in AADL text files should be reflected in the classifier information view immediately after saving.

Expected and Current Behavior

The only way to refresh the classifier information view is to re-open the classifier from the outline view.

Environment

AaronGreenhouse commented 4 years ago

Need to add resource change listener that watches the resources that contain all the classifiers in the hierarchy. Listener should rebuild the view when a resource changes.

AaronGreenhouse commented 4 years ago

Added a resource change listener. Changed the view to keep track of the URI of the classifier it is viewing. When any resource changes that we care about, then the view is rebuild from the object referenced by the URI. Need to keep the URI and not the Classifier object so that we can get the newly parsed Classifier object from the URI.