/** * Writes the contents of <code>station</code> into <code>element</code>. * @param stations the items to write * @param element the element to write into, the attributes of <code>element</code> * will not be changed */ public void writeCompositionsXML( Map<String, DockLayoutComposition> stations, XElement element ) { for( Map.Entry<String, DockLayoutComposition> entry : stations.entrySet() ){ XElement xchild = element.addElement( "element" ); xchild.addString( "name", entry.getKey() ); writeCompositionXML( entry.getValue(), xchild ); } }
XElement xroot = xroots.addElement( "root" ); xroot.addString( "name", root ); situation.writeCompositionXML( getRoot( root ), xroot ); situation.writeCompositionXML( layout, xchild.addElement( "layout" ) );
XElement xroot = xroots.addElement( "root" ); xroot.addString( "name", root ); situation.writeCompositionXML( getRoot( root ), xroot ); situation.writeCompositionXML( layout, xchild.addElement( "layout" ) );
writeCompositionXML( child, xchild );
conversion.getSituation().writeCompositionXML( conversion.convert( dockable.intern() ), xdockable.addElement( "content" ) );
conversion.getSituation().writeCompositionXML( conversion.convert( dockable.intern() ), xdockable.addElement( "content" ) );