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
List translations = designHandle.getTranslations( );
		assertTrue( translations.size( ) == 4 );
		designHandle.addTranslation( "resourceKey.test1", "en", "text1" ); 
		translations = designHandle.getTranslations( );
		assertTrue( translations.size( ) == 5 );
		try
		{
			designHandle.addTranslation( "resourceKey.test1", "en", "text2" ); 
			fail( );
		}
		catch ( CustomMsgException e )
		{
			assertEquals( CustomMsgException.DESIGN_EXCEPTION_DUPLICATE_LOCALE,
					e.getErrorCode( ) );
		}
	}
	/**
	 * Tests dropping translation.
	 * 
	 * @throws DesignFileException
	 *             if failed to open design file.
	 * @throws CustomMsgException
	 *             if any translation operation error.
	 */
	public void testDropTranslation( ) throws DesignFileException,
			CustomMsgException
	{
		openDesign( "ReportDesignHandleTest.xml", ULocale.CHINA ); 
		List translations = designHandle.getTranslations( );
		assertTrue( translations.size( ) == 4 );