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/parser/UserPropertyTest.java
prop.setProperty( memberDefn, "new name" ); 
		assertEquals( "new name", prop.getProperty( null, memberDefn ) ); 
		memberDefn = (StructPropertyDefn) structDefn
				.getMember( UserPropertyDefn.TYPE_MEMBER );
		prop.setProperty( memberDefn, PropertyType.BOOLEAN_TYPE_NAME );
		assertEquals( PropertyType.BOOLEAN_TYPE_NAME, prop.getProperty( null,
				memberDefn ) );
		memberDefn = (StructPropertyDefn) structDefn
				.getMember( UserPropertyDefn.DISPLAY_NAME_MEMBER );
		prop.setProperty( memberDefn, "new display name" ); 
		assertEquals( "new display name", prop.getProperty( null, memberDefn ) ); 
		memberDefn = (StructPropertyDefn) structDefn
				.getMember( UserPropertyDefn.DISPLAY_NAME_ID_MEMBER );
		prop.setProperty( memberDefn, "new display name id" ); 
		assertEquals( "new display name id", prop 
				.getProperty( null, memberDefn ) );
	}
	/**
	 * Test the properties for user-defined properties.
	 * 
	 * @throws Exception
	 */
	public void testHandler( ) throws Exception
	{
		openDesign( "UserPropertyTest.xml" );  	
		MultiElementSlot lists = (MultiElementSlot) design
				.getSlot( ReportDesign.COMPONENT_SLOT );
		assertEquals( 2, lists.getCount( ) );
		ListItem list = (ListItem) design.findElement( "My List" ); 
		assertNotNull( list );