Class MainWindowUI

java.lang.Object
org.omegat.gui.main.MainWindowUI

public final class MainWindowUI extends Object
Class for initialize, load/save, etc. for main window UI components.
  • Field Details

    • UI_LAYOUT_FILE

      public static final String UI_LAYOUT_FILE
  • Method Details

    • handlePerProjectLayouts

      public static void handlePerProjectLayouts(MainWindow mainWindow)
      Installs a IProjectEventListener that handles loading, storing, and restoring the main window layout when a project-specific layout is present.
    • initializeScreenLayout

      public static void initializeScreenLayout(IMainWindow mainWindow)
      Initialize the size of OmegaT window, then load the layout prefs.
    • saveScreenLayout

      public static void saveScreenLayout(MainWindow mainWindow)
      Stores main window docking layout to disk.
    • resetDesktopLayout

      public static void resetDesktopLayout(IMainWindow mainWindow)
      Restores main window layout to the default values (distinct from global preferences).
    • getTrimmedSelectedTextInMainWindow

      public static String getTrimmedSelectedTextInMainWindow(MainWindow mainWindow)