Skip to content

#2182: add commandlet view with combobox to select and execute commandlets - #2213

Open
Hiepiscus wants to merge 13 commits into
devonfw:mainfrom
Hiepiscus:2182-basic-structure-for-commandlet-view
Open

#2182: add commandlet view with combobox to select and execute commandlets#2213
Hiepiscus wants to merge 13 commits into
devonfw:mainfrom
Hiepiscus:2182-basic-structure-for-commandlet-view

Conversation

@Hiepiscus

@Hiepiscus Hiepiscus commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #2182

Adds a new commandlet view that allows user to select a commandlet from a combobox, configure its parameters, and execute it so that IDEasy commands can be run from the GUI without using the command line.

Implemented changes:

  • CommandletController (new):
    • Controller that populates a sorted combobox with all available commandlet names form the CommandletManager. Parses the parameter text input and maps tokens to commandlet value properties then executes the commandlet via runCommandlet.
  • commandlet-view (new):
    • FXML view with commandlet combobox, a textfield for parameters and a execute button.
  • MainController:
    • Added openCommandlet() method to navigate from the main to commandlet view and connected to a new button.
  • main-view: new navigation button for commandlet view.

Testing instructions

  1. Run AppLauncher
  2. Set Project and Workspace
  3. Click Commandlets
  4. Select a commandlet from the combobox
  5. Enter parameters in the text field seperated by space (e.g. mvn 3.9.4)
  6. Click Run to execute

Checklist for this PR

Make sure everything is checked before merging this PR. For further info please also see
our DoD.

  • When running mvn clean test locally all tests pass and build is successful
  • PR title is of the form #«issue-id»: «brief summary» (e.g. #921: fixed setup.bat). If no issue ID exists, title only.
  • PR top-level comment summarizes what has been done and contains link to addressed issue(s)
  • PR and issue(s) have suitable labels
  • Issue is set to In Progress and assigned to you or there is no issue (might happen for very small PRs)
  • You followed all coding conventions
  • You have added the issue implemented by your PR in CHANGELOG.adoc unless issue is labeled
    with internal
  • You have formulated clear instructions on how to test your contribution under "Testing instructions"

@github-project-automation github-project-automation Bot moved this to 🆕 New in IDEasy board Jul 27, 2026
@Hiepiscus Hiepiscus self-assigned this Jul 27, 2026
@Hiepiscus Hiepiscus added GUI Graphical User Interface of IDEasy (aka dashboard) build with JavaFx commandlet ide sub-command labels Jul 27, 2026
@Hiepiscus Hiepiscus moved this from 🆕 New to Team Review in IDEasy board Jul 27, 2026
@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 30266245727

Coverage decreased (-0.09%) to 72.476%

Details

  • Coverage decreased (-0.09%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 38 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

38 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
com/devonfw/ide/gui/MainController.java 37 53.98%
com/devonfw/tools/ide/tool/ide/IdeToolCommandlet.java 1 78.33%

Coverage Stats

Coverage Status
Relevant Lines: 16992
Covered Lines: 12833
Line Coverage: 75.52%
Relevant Branches: 7590
Covered Branches: 4983
Branch Coverage: 65.65%
Branches in Coverage %: Yes
Coverage Strength: 3.2 hits per line

💛 - Coveralls

@laim2003
laim2003 self-requested a review July 27, 2026 13:26
@laim2003 laim2003 self-assigned this Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commandlet ide sub-command GUI Graphical User Interface of IDEasy (aka dashboard) build with JavaFx

Projects

Status: Team Review

Development

Successfully merging this pull request may close these issues.

Basic structure for Commandlet view

3 participants