Element () { Element parentNode = new Element("projectView"); Element navigatorElement = new Element(ELEMENT_NAVIGATOR); AbstractProjectViewPane currentPane = getCurrentProjectViewPane(); if (currentPane != null) { String subId = currentPane.getSubId(); navigatorElement.setAttribute(ATTRIBUTE_CURRENT_VIEW, currentPane.getId()); if (subId != null) { navigatorElement.setAttribute(ATTRIBUTE_CURRENT_SUBVIEW, subId); } } splitterProportions.saveSplitterProportions(panel); try { splitterProportions.writeExternal(navigatorElement); } catch (WriteExternalException ignored) { } if (!JDOMUtil.isEmpty(navigatorElement)) { parentNode.addContent(navigatorElement); } Element panesElement = new Element(ELEMENT_PANES); writePaneState(panesElement); parentNode.addContent(panesElement); return parentNode; }