Skip to content

Commit

Permalink
Overwrited set/getProjectLocation for Quarkus new project view
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Korniienko <[email protected]>
  • Loading branch information
olkornii committed Oct 8, 2024
1 parent 1d2ecfc commit f686b73
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,19 @@ public void setProjectName(String projectName) {
super.setProjectName(projectName);
}
}

@Override
public String getProjectLocation() {
return find(JTextFieldFixture.class, byXpath("//div[@accessiblename='Project location:' and @class='JTextField']")).getText();
}

/**
* Set the project location for new project in the 'New Project' Quarkus dialog
*
* @param projectLocation project location of the new project
*/
@Override
public void setProjectLocation(String projectLocation) {
find(JTextFieldFixture.class, byXpath("//div[@accessiblename='Project location:' and @class='JTextField']")).setText(projectLocation);
}
}

0 comments on commit f686b73

Please sign in to comment.