mirashanouda / AI-based-configuration-and-IDE-Java-based-tool-for-AUTOSAR-projects

The aim of this project is to design an artificial intelligence-based configuration and IDE tool that will be used in AUTOSAR-based projects.
5 stars 1 forks source link

Extracting ARXML Bug - Doesn't get the modified values instantly #54

Closed AhmedEssam78 closed 7 months ago

AhmedEssam78 commented 7 months ago

This was happening because the modified values was updated inside the parameters' objects in Jtree2MouseClicked function which is called when we only click on the containers.

The right implementation is to modify the parameters' objects whenever the user enters a value in the text_field or combo_box related to any parameter. When the user enters a new value, there is an Action Listener Function related to each input field. Inside this action function, we should implement our code to access the parameters.

Note that we update the parameters values whether it's valid or not. However, there is a function for validating input, which is called directly after entering invalid data telling the user to enter a valid one. Moreover, it prevent him for extracting ARXML File unless he solved the errors shown in log messages window.

AhmedEssam78 commented 7 months ago

Done.

For future reference, when dealing with parameters' values, consider that we have 4 types of parameters: int, float, bool, enum. Cause in some parts of the code, the bool and enum are forgotten.

AhmedEssam78 commented 7 months ago

@mirashanouda @nada-dev