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
assertTrue( newDesign.getModule( ).isValid( ) );
		assertEquals( 1, getDesignCount( ) );
		
		newDesign.saveAs( outputPath + "newdesign.xml" ); 
		newDesign.close( );
		assertFalse( newDesign.needsSave( ) );
		assertFalse( newDesign.getModule( ).isValid( ) );
		assertEquals( 0, getDesignCount( ) );
		
		session = null;
		designHandle = null;
		session = designEngine.newSessionHandle( (ULocale) null );
		designHandle = session.openDesign( outputPath + "newdesign.xml" ); 
		assertNotNull( designHandle );
		assertFalse( designHandle.needsSave( ) );
		assertTrue( designHandle.getModule( ).isValid( ) );
		assertEquals( 1, getDesignCount( ) );
		ReportDesignHandle anotherDesignHandle = session
				.openDesign( getResource( INPUT_FOLDER + fileName ).toString( ) );
		assertNotNull( anotherDesignHandle );
		assertTrue( anotherDesignHandle.needsSave( ) );
		assertTrue( anotherDesignHandle.getModule( ).isValid( ) );
		assertEquals( 2, getDesignCount( ) );
	}
	/**
	 * Open the design file which does not exist.
	 */
	public void testOpenNonExistedFile( )
	{
		try