示例#1
0
 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);
     }
   }
 }
示例#2
0
 public void setMinimized(boolean minimized) {
   mapShell.setMinimized(minimized);
 }