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
Library instance2 = (Library) libs.get( 1 );
		session.fireResourceChange( new LibraryChangeEvent( getResource(
				INPUT_FOLDER + "Library_1.xml" ).toExternalForm( ) ) ); 
		assertEquals( "refresh", libListener.getStatus( ) ); 
		assertNotSame( instance1, ( (Module) designHandle.getElement( ) )
				.getLibraries( ).get( 1 ) );
		assertSame( instance2, ( (Module) designHandle.getElement( ) )
				.getLibraries( ).get( 0 ) );
		session.fireResourceChange( new LibraryChangeEvent( getResource(
				INPUT_FOLDER + "Grandson.xml" ).toExternalForm( ) ) ); 
		assertNotSame( instance2, ( (Module) designHandle.getElement( ) )
				.getLibraries( ).get( 1 ) );
	}
	/**
	 * 
	 * @throws Exception
	 */
	public void testParserSemanticCheckControl( ) throws Exception
	{
		ModuleOption options = new ModuleOption( );
		options.setSemanticCheck( false );
		designHandle = session
				.openDesign(
						getResource( INPUT_FOLDER + "SessionHandleTest_11.xml" ).toString( ), options ); 
		assertEquals( 0, designHandle.getModule( ).getAllErrors( ).size( ) );
		assertEquals( 0, designHandle
				.getLibrary( "lib" ).getModule( ).getAllErrors( ).size( ) ); 
		designHandle.close( );
		options = null;
		designHandle = session