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

refactor: ProjectPropertiesDialog class #967

Merged
merged 8 commits into from
Mar 20, 2024

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Feb 25, 2024

There is a technical debt in gui source codes.
Many sources are generated by GUI editor, and there is not enough tests.
Here is a proposal of improvement to split gui code to split controller class, on basis of a MVC principle.

Pull request type

  • Other (describe below)

Which ticket is resolved?

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

What does this PR change?

  • Split controller logic into ProjectPropertiesDialogController class
  • Reduce arguments of doOK method
  • remove suppression of checkstyle
  • Introduce static ProjectPropertiesDialogController.showDialog function
  • give UI components name

Other information

Spin out an improvement from #964

- Split controller logic into ProjectPropertiesDialogController class
- Reduce arguments of doOK method
- remove suppression of checkstyle
- Introduce static ProjectPropertiesDialogController.showDialog function

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@omegat-org omegat-org deleted a comment from github-actions bot Feb 25, 2024
@omegat-org omegat-org deleted a comment from github-actions bot Feb 25, 2024
Copy link

❌ Run Gradle test failed:

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@miurahr miurahr marked this pull request as ready for review February 29, 2024 01:08
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Copy link

github-actions bot commented Mar 9, 2024

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

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

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@miurahr miurahr merged commit 2778c62 into master Mar 20, 2024
9 checks passed
@miurahr miurahr deleted the topic/miurahr/gui/refactor-project-properties branch March 20, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant