public Location readPropertyXML( XElement element ) { XElement xmode = element.getElement( "mode" ); Path mode = null; if( xmode != null ){ mode = new Path( xmode.getString() ); } String root = element.getElement( "root" ).getString(); DockableProperty location = transformer.readXML( element.getElement( "location" ) ); if( mode == null ){ mode = guessMode( location ); } return new Location( mode, root, location ); } }
public Location readPropertyXML( XElement element ) { XElement xmode = element.getElement( "mode" ); Path mode = null; if( xmode != null ){ mode = new Path( xmode.getString() ); } String root = element.getElement( "root" ).getString(); DockableProperty location = transformer.readXML( element.getElement( "location" ) ); if( mode == null ){ mode = guessMode( location ); } boolean applicationDefined = false; XElement xapplicationDefined = element.getElement( "applicationDefined" ); if( xapplicationDefined != null ){ applicationDefined = xapplicationDefined.getBoolean(); } return new Location( mode, root, location, applicationDefined ); } }
XElement xlocation = xdockable.getElement( "location" ); String locationRoot = xlocation.getString( "root" ); DockableProperty location = transformer.readXML( xlocation ); Path mode = new Path( xlocation.getString( "mode" ));
XElement xlocation = xdockable.getElement( "location" ); String locationRoot = xlocation.getString( "root" ); DockableProperty location = transformer.readXML( xlocation ); Path mode = new Path( xlocation.getString( "mode" ));