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: add IMainWindow#resetDesktopLayout #1059

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Jun 13, 2024

extend IMainWindow API to add resetDesktopLayout to help menu handler to avoid direct dependency for raw MainWindow object to help test code mocking it.

Pull request type

  • Other (describe below)
    refactor

Which ticket is resolved?

What does this PR change?

  • Extend IMainWindow API
  • Remove dependency to "raw" mainWindow from MainWindowMenuHandler
  • Update test codes according to API

Other information

- Extend IMainWindow API
- Remove dependency to "raw" mainWindow from MainWindowMenuHandler
- Update test codes according to API

Signed-off-by: Hiroshi Miura <[email protected]>
/**
* Restores the main window layout to the default values.
*/
default void resetDesktopLayout() {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We add it as default which keeps backward compatibility for plugins compiled with previous versions of OmegaT.

@miurahr miurahr merged commit 51f0d34 into master Jun 14, 2024
9 checks passed
@miurahr miurahr deleted the topic/miurahr/main/extend-mainwindow-api-layout branch June 14, 2024 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant