Skip to content

feat: Implement #9: Show Jeddict icon in NetBeans menus#166

Merged
jGauravGupta merged 1 commit into
jeddict:mainfrom
stefanofornari:ste.#9.action_icons
Sep 2, 2025
Merged

feat: Implement #9: Show Jeddict icon in NetBeans menus#166
jGauravGupta merged 1 commit into
jeddict:mainfrom
stefanofornari:ste.#9.action_icons

Conversation

@stefanofornari

@stefanofornari stefanofornari commented Aug 27, 2025

Copy link
Copy Markdown
Collaborator

This PR implements the user story from issue #9, allowing Jeddict icons to be displayed before menu items in NetBeans, enhancing visibility and usability.

As part of this feature, significant refactoring was undertaken to improve code quality and maintainability:

  • Introduced BaseGitAction to centralize Git project-related action logic.
  • Introduced BaseContextAction for common context-aware action functionalities.
  • Introduced BaseProjectContextAction for project-specific context actions.
  • Refactored GenerateCommitMessageAction and ReviewAction to leverage these new base classes.
  • Added comprehensive Javadoc to all classes within the io.github.jeddict.ai.actions package for improved code documentation.

The implementation is a bit tricky as the most immediate method by setting a baseIcon does not actually work out of the box. The core of the implementation is to implement the interface Presenter.Popup, basically setting the icon programmatically and creating a new JMenuItem. The rest of the changes are to reduce code duplication and to improve JavaDoc.

This commit implements the user story from issue #9, allowing Jeddict icons to be displayed
before menu items in NetBeans, enhancing visibility and usability.

As part of this feature, significant refactoring was undertaken to improve code quality and maintainability:
- Introduced `BaseGitAction` to centralize Git project-related action logic.
- Introduced `BaseContextAction` for common context-aware action functionalities.
- Introduced `BaseProjectContextAction` for project-specific context actions.
- Refactored `GenerateCommitMessageAction` and `ReviewAction` to leverage these new base classes.
- Added comprehensive Javadoc to all classes within the `io.github.jeddict.ai.actions` package for improved code documentation.
@jGauravGupta jGauravGupta added this to the 3.3 milestone Sep 2, 2025
@jGauravGupta jGauravGupta merged commit 328ff78 into jeddict:main Sep 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants