Saves the current configuration.
()
| 258 | * Saves the current configuration. |
| 259 | */ |
| 260 | public void saveOptions() { |
| 261 | gopts.setFiles(GUIOptions.OPEN, editor.openFiles()); |
| 262 | final boolean max = getExtendedState() == MAXIMIZED_BOTH; |
| 263 | gopts.set(GUIOptions.MAXSTATE, max); |
| 264 | if(!max) { |
| 265 | gopts.set(GUIOptions.GUILOC, new int[] { getX(), getY()}); |
| 266 | gopts.set(GUIOptions.GUISIZE, new int[] { getWidth(), getHeight()}); |
| 267 | } |
| 268 | gopts.write(); |
| 269 | context.soptions.write(); |
| 270 | } |
| 271 | |
| 272 | /** |
| 273 | * Sets the window title. |