Package org.omegat.gui.main
Class MainWindowUI
java.lang.Object
org.omegat.gui.main.MainWindowUI
Class for initialize, load/save, etc. for main window UI components.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTrimmedSelectedTextInMainWindow(MainWindow mainWindow) static voidhandlePerProjectLayouts(MainWindow mainWindow) Installs aIProjectEventListenerthat handles loading, storing, and restoring the main window layout when a project-specific layout is present.static voidinitializeScreenLayout(IMainWindow mainWindow) Initialize the size of OmegaT window, then load the layout prefs.static voidresetDesktopLayout(IMainWindow mainWindow) Restores main window layout to the default values (distinct from global preferences).static voidsaveScreenLayout(MainWindow mainWindow) Stores main window docking layout to disk.
-
Field Details
-
UI_LAYOUT_FILE
-
-
Method Details
-
handlePerProjectLayouts
Installs aIProjectEventListenerthat handles loading, storing, and restoring the main window layout when a project-specific layout is present. -
initializeScreenLayout
Initialize the size of OmegaT window, then load the layout prefs. -
saveScreenLayout
Stores main window docking layout to disk. -
resetDesktopLayout
Restores main window layout to the default values (distinct from global preferences). -
getTrimmedSelectedTextInMainWindow
-