Skip to content

#2329: workspace main should be auto selected when selecting a project in the gui - #2353

Closed
samuelkos17 wants to merge 2 commits into
devonfw:mainfrom
samuelkos17:feature/2393-workspace-main-should-be-auto-selected-when-selecting-a-project-in-the-gui
Closed

#2329: workspace main should be auto selected when selecting a project in the gui#2353
samuelkos17 wants to merge 2 commits into
devonfw:mainfrom
samuelkos17:feature/2393-workspace-main-should-be-auto-selected-when-selecting-a-project-in-the-gui

Conversation

@samuelkos17

@samuelkos17 samuelkos17 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #2329

Implemented changes:

  • Added auto-selection logic of the workspace "main" to setWorkspaceComboBox in MainController.java
  • Changed tests to fit the auto-selection logic

Testing instructions

Please add conscise, understandable instructions on how a reviewer can test/verify the functionality of your contribution here:

  1. Run ./build-local-dev.sh (when #2351: Fixed GUI not launching with local dev build #2352 is merged)
  2. Open a shell and run ide gui
  3. Select a project in the gui and observe the workspace combobox, it should contain "main" and the IDE-buttons should be clickable.

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 and not feature/921 fixed setup.bat). If no issue ID exists, title only.
  • PR top-level comment summaries 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 labelled
    with internal
  • You have not changed any dependency in pom.xml files or otherwise if runtime dependencies changed, you have updated our LICENSE.asciidoc
  • You have formulated clear instructions on how to test your contribution under "Testing instructions"

…ain-should-be-auto-selected-when-selecting-a-project-in-the-gui

# Conflicts:
#	gui/src/main/java/com/devonfw/ide/gui/MainController.java
@github-project-automation github-project-automation Bot moved this to 🆕 New in IDEasy board Aug 19, 2026
@samuelkos17 samuelkos17 self-assigned this Aug 19, 2026
@samuelkos17 samuelkos17 moved this from 🆕 New to Team Review in IDEasy board Aug 19, 2026
@samuelkos17 samuelkos17 changed the title #2393 workspace main should be auto selected when selecting a project in the gui #2393: workspace main should be auto selected when selecting a project in the gui Aug 19, 2026
@samuelkos17 samuelkos17 changed the title #2393: workspace main should be auto selected when selecting a project in the gui #2329: workspace main should be auto selected when selecting a project in the gui Aug 19, 2026
@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 32262031421

Coverage decreased (-0.002%) to 72.934%

Details

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

Uncovered Changes

No uncovered changes found.

Coverage Regressions

25 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
com/devonfw/ide/gui/MainController.java 24 67.88%
com/devonfw/tools/ide/version/VersionSegment.java 1 90.03%

Coverage Stats

Coverage Status
Relevant Lines: 17571
Covered Lines: 13367
Line Coverage: 76.07%
Relevant Branches: 7771
Covered Branches: 5116
Branch Coverage: 65.83%
Branches in Coverage %: Yes
Coverage Strength: 3.23 hits per line

💛 - Coveralls

@samuelkos17
samuelkos17 deleted the feature/2393-workspace-main-should-be-auto-selected-when-selecting-a-project-in-the-gui branch August 19, 2026 15:09
@github-project-automation github-project-automation Bot moved this from Team Review to ✅ Done in IDEasy board Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Workspace "main" should be auto-selected when selecting a project in the GUI

2 participants