Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: IMainMenu#getMenuItemForNames API #976

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Mar 11, 2024

Extend IMainMenu API and use the API in MainWindowMenuHandler instead of accessing MainWindowMenu object methods.

Pull request type

  • Other (describe below)
    refactor

Which ticket is resolved?

dev-ML
https://sourceforge.net/p/omegat/mailman/message/58747200/

What does this PR change?

  • Define menu and menu items "name"
  • Add new API getMenuItemForNames to help manipulating or retrieving status of menu item.

Other information

TODO:

  • unit tests
  • define all component names

- Define menu and menu items "name"
- Add new API getMenu with key as a component name
- Add new API getMenuItemForNames to help manipulating or retrieving status of menu item.
- These API can replace all get*Menu API

Signed-off-by: Hiroshi Miura <[email protected]>
@miurahr miurahr added this to the 6.1.0 (Require Java 11) milestone Mar 11, 2024
@miurahr miurahr changed the title feat: getMenu and getMenuItemForNames API feat: getMenuItemForNames API Mar 11, 2024
Copy link

❌ Unit Tests, Quality checks, and Acceptance Tests failed.

Please look a Gradle Scan page for details:
https://gradle.com/s/lag4t7k2vn256

- avoid unused constant

Signed-off-by: Hiroshi Miura <[email protected]>
Copy link

❌ Unit Tests, Quality checks, and Acceptance Tests failed.

Please look a Gradle Scan page for details:
https://gradle.com/s/erwdqwnrwjbkk

@miurahr miurahr changed the title feat: getMenuItemForNames API feat: IMainMenu#getMenuItemForNames API Mar 11, 2024
Signed-off-by: Hiroshi Miura <[email protected]>
@miurahr
Copy link
Member Author

miurahr commented May 3, 2024

A feature handles a GUI parts. We need a robust GUI test framework to implement unit test for the feature.
It is why the proposal is keeping in draft.

I've working on Assertj-Swing testing framework to help the proposal tested with it.
https://codeberg.org/miurahr/assertj-swing

Now "tokyo.northside:assertj-swing:4.0.0-beta-1" published, so I would like to resume the activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant