private static void readMode(final Shell shell, final String mode) { if (mode != null) { if ("maximized".equals(mode)) { shell.setMaximized(true); } else if ("minimized".equals(mode)) { shell.setMinimized(true); } else { shell.setMinimized(false); shell.setMaximized(false); } } }
public void setMinimized(boolean minimized) { mapShell.setMinimized(minimized); }