Bug 180089 BIRT model - TOC predefined styles
In ROM we need to support predefined styles for TOC too. This will allow user to easily create a TOC style, by creating one of two styles. Suggestion i have is - TOC ( Applies to all TOC nodes ) - TOC-level1 ( If defined applies to first level toc nodes ) - TOC-level2 ........... - TOC-level5
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/SessionHandleTest.java
}
		
		designHandle = session
				.openDesign( getResource( INPUT_FOLDER + fileName ).toString( ) );
		assertTrue( designHandle.needsSave( ) );
		assertTrue( designHandle.getModule( ).isValid( ) );
		assertEquals( 1, getDesignCount( ) );
		
		designHandle.setStringProperty( ReportDesign.AUTHOR_PROP, "abc" ); 
		assertTrue( designHandle.needsSave( ) );
		assertTrue( designHandle.getModule( ).isValid( ) );
		
		designHandle.saveAs( outputPath + outFileName );
		assertFalse( designHandle.needsSave( ) );
		assertTrue( designHandle.getModule( ).isValid( ) );
		assertEquals( 1, getDesignCount( ) );
		
		DesignElementHandle freeForm = designHandle.getElementFactory( )
				.newFreeForm( "My Form" ); 
		designHandle.getBody( ).add( freeForm );
		assertTrue( designHandle.needsSave( ) );
		assertTrue( designHandle.getModule( ).isValid( ) );
		
		designHandle.close( );
		assertFalse( designHandle.needsSave( ) );
		assertFalse( designHandle.getModule( ).isValid( ) );
		assertEquals( 0, getDesignCount( ) );
		
		ReportDesignHandle newDesign = session.createDesign( );
		assertFalse( newDesign.needsSave( ) );