Skip to content

UI loading#41

Open
Vinaykumar-Manda wants to merge 11 commits into
devfrom
UILoading
Open

UI loading#41
Vinaykumar-Manda wants to merge 11 commits into
devfrom
UILoading

Conversation

@Vinaykumar-Manda

Copy link
Copy Markdown
Collaborator

Added the loader
Added the key typed listeners to the paths in the load view fxml

Gopal-moyya and others added 8 commits April 30, 2024 15:02
…he XML files (#3) (#4)

* Added models for ipconfig and pinconfig

* Added InputConfigRepo and updated models

* Minor changes

* Added hascode & equals methods for Pinconfig

* Addressed review comments

* Merge branch 'dev' into sbokku-test

Co-authored-by: Sujana2422 <86820188+Sujana2422@users.noreply.github.com>
* Changes done for ip config view.

1. Updated the slave update to not clearing existing slaves.
2. Updated the scl and sda pin combo boxes to contain disabled pins.
3. Removed disabled pins row.

* IP Pin changes done when Ip configuration updated

* Addressed review comments

* Pin config UI changes (#31)

* Added pinType model and parser for pin value types

* Added pin config UI changes

* Updated save data in Pin config as per new changes

* Fixed prompt message not updated when we reset the combo box data

* Prefilled the data from board configuration files

---------

Co-authored-by: Sindhu Boinapalli <sindhu.boinapalli@invecas.com>
Co-authored-by: vinay kumar chanda <vinaykumar.chanda@invecas.com>

* Added changes to Bypass mode

* Integrated QSPI changes in the app (#32)

* Removed unwanted files

---------

Co-authored-by: SKaparthi <kap.srichandra@gmail.com>
Co-authored-by: chiranjeevi.pasupuleti <chiranjeevi.pasupuleti@invecas.com>
Co-authored-by: chiruaj <30770028+chiruaj@users.noreply.github.com>
Co-authored-by: SindhuBoinapalli <43169085+SindhuKonda@users.noreply.github.com>
Co-authored-by: Sindhu Boinapalli <sindhu.boinapalli@invecas.com>
Co-authored-by: vinay kumar chanda <vinaykumar.chanda@invecas.com>
Co-authored-by: Jagadeesh Jami <jaggu1232000@gmail.com>
Co-authored-by: Sujana2422 <86820188+Sujana2422@users.noreply.github.com>
Co-authored-by: jaggusri12 <64919265+jaggusri12@users.noreply.github.com>
added the listerners for the paths in the loadDataController
Comment thread pom.xml Outdated
<scope>system</scope>
<systemPath>${basedir}/libs/CodeGeneration_jar/CodeGeneration.jar</systemPath>
</dependency>
<!-- <dependency>-->

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert these changes

@@ -0,0 +1,92 @@
<root>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this file

Comment thread src/main/assets/pin_muxing.xml Outdated
@@ -0,0 +1,74 @@
<?xml version="1.0" ?>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this file

}

public void onSubmit() {
System.out.println("onSubmit clicked");

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add logger messages and remove system.out

Parent fxml = null;
FXMLLoader loader = new FXMLLoader(getClass().getResource("load-data-view.fxml"));
LoadDataController loadDataController = new LoadDataController(this, xmlFolderPath);
LoadDataController loadDataController = new LoadDataController(this, xmlFolderPath, repositoryFolderPath, toolChainFolderPath, outputLocationFolderPath);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of passing these many arguments, better to use an object that should store all these paths.

folderPaths.put("output",outputPath);
}

Alert successAlert = new Alert(Alert.AlertType.INFORMATION);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alert variable name should alert, it shouldn't be successAlert as you are using it for both success and failure

Comment thread src/main/java/com/board/config/boardconfiggui/Main.java

@Gopal-moyya Gopal-moyya left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Address the review comments

if (allFields){
submitBtn.setDisable(false);
}
boolean allFields = StringUtils.isNotEmpty(configPathsModel.getXmlPath()) &&

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write a method inside configpathsmodel class to validate all these fields like below,

public boolean isValid(){
//check for path availability and return the response from here.

default:
break;
}
boolean allFields = StringUtils.isNotEmpty(configPathsModel.getXmlPath()) &&

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implement the same method here also

{
Node sourceNode = (Node) event.getSource();
switch (sourceNode.getId().toString()){
case "xmlPathField":

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use existing constants here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants