Bug 193245 Should block user to set content type property on the child element
After we switch from the slot to content element type property, all the rules that we applied to the slot before should be applied to the content element type property. When an element is extended from the library element, it should not be allowed to change the child element structure. So, when user call setProperty() to set the value of the content element type property, Model should throw out exception.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/command/PropertyCommandTest.java
/**
	 * Tests replace methods. Test case:
	 * <ul>
	 * <li>get the map rule list from My Style.</li>
	 * <li>get the map rule list from style2</li>
	 * <li>use the second structure list in My style to replace the first
	 * structure list in style2</li>
	 * <li>use the first structure list in style2 to replace the second
	 * structure list in My Style.</li>
	 * 
	 * <li>Replace an item within a member list</li>
	 * </ul>
	 * 
	 * @throws Exception
	 */
	public void testReplaceItemTwo( ) throws Exception
	{
		SharedStyleHandle styleHandle1 = designHandle.findStyle( "My Style" ); 
		SharedStyleHandle styleHandle2 = designHandle.findStyle( "Style2" ); 
		ComplexPropertyCommand command1 = new ComplexPropertyCommand( design,
				styleHandle1.getElement( ) );
		ComplexPropertyCommand command2 = new ComplexPropertyCommand( design,
				styleHandle2.getElement( ) );
		CommandStack cs = designHandle.getCommandStack( );
		Iterator maprules1 = styleHandle1.mapRulesIterator( );
		Iterator maprules2 = styleHandle2.mapRulesIterator( );
		MapRuleHandle rule1 = (MapRuleHandle) maprules1.next( );
		MapRuleHandle rule2 = (MapRuleHandle) maprules2.next( );
		
		MemberRef mem1 = styleHandle1.getPropertyHandle( Style.MAP_RULES_PROP )