Element () { Element element = new Element("commander"); if (myLeftPanel == null || myRightPanel == null) { return element; } PsiDocumentManager.getInstance(project).commitAllDocuments(); Element e = new Element(ELEMENT_LEFTPANEL); element.addContent(e); writePanel(myLeftPanel, e); e = new Element(ELEMENT_RIGHTPANEL); element.addContent(e); writePanel(myRightPanel, e); e = new Element(ELEMENT_SPLITTER); element.addContent(e); e.setAttribute(ATTRIBUTE_PROPORTION, Float.toString(mySplitter.getProportion())); if (!MOVE_FOCUS) { e = new Element(ELEMENT_OPTION); element.addContent(e); e.setAttribute(ATTRIBUTE_MOVE_FOCUS, "false"); } return element; }