Skip to content

#1802 GUI State management implementation#1807

Open
laim2003 wants to merge 43 commits intodevonfw:mainfrom
laim2003:#1802-state-management-implementation
Open

#1802 GUI State management implementation#1807
laim2003 wants to merge 43 commits intodevonfw:mainfrom
laim2003:#1802-state-management-implementation

Conversation

@laim2003
Copy link
Copy Markdown
Contributor

@laim2003 laim2003 commented Apr 9, 2026

This PR fixes #1802

Implemented changes:

  • Implemented basic State Management for the IdeContext in the GUI
  • State management should be thread safe: Thread safe singleton implementation
  • Added custom adaption of JavaFXs alert class for IDEasy

Main points:

  • Basic state management
  • Start-context <-> context seperation
  • Ensure thread safety
  • Callback pattern for any dependent compontents

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

laim2003 added 13 commits March 27, 2026 17:52
- Added logging to IdeGuiStateManager.
- Added functionality, that selecting a different project now switches the IdeContext to the new project.
- Added logging to IdeGuiStateManager.
- Added functionality, that selecting a different project now switches the IdeContext to the new project.
- Added functionality, that selecting a different project now switches the IdeContext to the new project.
@github-project-automation github-project-automation Bot moved this to 🆕 New in IDEasy board Apr 9, 2026
@laim2003 laim2003 self-assigned this Apr 9, 2026
@laim2003 laim2003 added GUI Graphical User Interface of IDEasy (aka dashboard) build with JavaFx bugfix PR that fixes a bug issue core FileAccess, ProcessUtil, IdeContext, etc. labels Apr 9, 2026
@laim2003 laim2003 moved this from 🆕 New to 🏗 In progress in IDEasy board Apr 9, 2026
- added DI for IdeGuiStateManager.switchContext
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Apr 9, 2026

Coverage Report for CI Build 25366019060

Coverage increased (+0.03%) to 70.684%

Details

  • Coverage increased (+0.03%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 32 coverage regressions across 4 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

32 previously-covered lines in 4 files lost coverage.

File Lines Losing Coverage Coverage
com/devonfw/ide/gui/MainController.java 17 64.0%
com/devonfw/ide/gui/App.java 13 0.0%
com/devonfw/ide/gui/AppLauncher.java 1 0.0%
com/devonfw/tools/ide/version/VersionSegment.java 1 89.5%

Coverage Stats

Coverage Status
Relevant Lines: 15459
Covered Lines: 11380
Line Coverage: 73.61%
Relevant Branches: 6880
Covered Branches: 4410
Branch Coverage: 64.1%
Branches in Coverage %: Yes
Coverage Strength: 3.11 hits per line

💛 - Coveralls

@laim2003 laim2003 added the internal Nothing to be added to CHANGELOG, only internal story label Apr 14, 2026
@laim2003 laim2003 moved this from 🏗 In progress to Team Review in IDEasy board Apr 24, 2026
@laim2003 laim2003 moved this from Team Review to 🏗 In progress in IDEasy board Apr 28, 2026
- not automatically select a workspace
- to seperate concerns of which functions update the workspace combobox and which the project combobox
…low new Select-Project-Then-Select-Workspace UI logic (previous commit)
@laim2003 laim2003 force-pushed the #1802-state-management-implementation branch from 459f762 to 6c44432 Compare April 28, 2026 17:28
@laim2003 laim2003 moved this from 🏗 In progress to Team Review in IDEasy board Apr 28, 2026
@laim2003 laim2003 marked this pull request as ready for review April 30, 2026 08:34
@laim2003 laim2003 moved this from Team Review to 👀 In review in IDEasy board May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR that fixes a bug issue core FileAccess, ProcessUtil, IdeContext, etc. GUI Graphical User Interface of IDEasy (aka dashboard) build with JavaFx internal Nothing to be added to CHANGELOG, only internal story

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Enable state management for the IdeContext in the GUI.

2 participants