testModel();
}
public void testModel()
{
XBaseModel dset = (XBaseModel) XTableModelHelper.createDataSet( "events" );
XBaseModel tableModel = (XBaseModel) XTableModelHelper.createTable( dset, "items" );
XBaseModel header = (XBaseModel) XTableModelHelper.addHeader( tableModel );
XTableModelHelper.addData( header, "event", "event" );
XTableModelHelper.addData( header, "control", "control" );
XTableModelHelper.addData( header, "value", "value" );
XModel baseModel = (XModel)XProjectManager.getModel();
XBaseModel settings = new XBaseModel();
settings.setTagName( "dataset" );
settings.setAttribValue( 1, "settings" );
baseModel.append(settings);
XBaseModel urlModel = new XBaseModel();
urlModel.setTagName( "data" );
urlModel.setAttribValue( 1, "url" );
urlModel.set( "The url" );
settings.append( urlModel );
System.out.println("before dump 1");
DebugLogger.dumpModel( (XBaseModel)XProjectManager.getModel().get( "base/settings") );
System.out.println("after dump 2");
}