}
}
public Rectangle getBounds(Editor editor, Rectangle defVal) {
try {
KongaPreferences node = getNode(editor.getMementoPath(), true);
if (node == null) {
return defVal;
}
Point p = node.getPoint(LOCATION, defVal.getLocation());
Dimension size = node.getDimension(SIZE, defVal.getSize());
return new Rectangle(p, size);
} catch (Exception ex) {
ErrorLog.log(getClass(), "Failed to restore editor size and location from preferences", ex);
return defVal;
}