MCPcopy Create free account
hub / github.com/BaseXdb/basex / saveOptions

Method saveOptions

basex-core/src/main/java/org/basex/gui/GUI.java:260–270  ·  view source on GitHub ↗

Saves the current configuration.

()

Source from the content-addressed store, hash-verified

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.

Callers 8

quitMethod · 0.95
checkVersionMethod · 0.95
disposeMethod · 0.80
changeRootMethod · 0.80
saveMethod · 0.80
fileMethod · 0.80
closeAllMethod · 0.80
closeMethod · 0.80

Calls 4

setFilesMethod · 0.80
openFilesMethod · 0.80
setMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected