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/ReportDesignHandleTest.java
.get( 0 );
		assertEquals( "ResourceKey.ReportDesign.Title", translation 
				.getResourceKey( ) );
		assertEquals( null, translation.getLocale( ) );
		assertEquals( "My Sample design(default)", translation.getText( ) ); 
		TranslationHandle handle = designHandle.getTranslation(
				"ResourceKey.ReportDesign.Title", null ); 
		assertEquals( "My Sample design(default)", handle.getText( ) ); 
		translation = (TranslationHandle) translations.get( 1 );
		assertEquals( "ResourceKey.ReportDesign.Title", translation 
				.getResourceKey( ) );
		assertEquals( "zh_CN", translation.getLocale( ) ); 
		assertEquals( "zh_CN:\u7B80\u5355\u62A5\u8868.", translation.getText( ) ); 
		String[] keys = designHandle.getTranslationKeys( );
		assertEquals( 2, keys.length );
		String str = design
				.getMessage(
						"ResourceKey.ReportDesign.Title", new ULocale( "zh", "CN", "tai" ) ); 
		assertEquals( "zh_CN:\u7B80\u5355\u62A5\u8868.", str ); 
	}
	/**
	 * Tests adding translation.
	 * 
	 * @throws DesignFileException
	 * @throws CustomMsgException
	 */
	public void testAddTranslation( ) throws DesignFileException,
			CustomMsgException
	{
		openDesign( "ReportDesignHandleTest.xml", ULocale.CHINA );