Bug 118351 Predefine style in library cannot refresh in layout
Details: Predefine style in library cannot refresh in layout Step: 1.New a library and create two themes and two label predefine style with yellow and green background color. Named theme1 and theme2, style1 and style2. 2.Open a report design and insert a label. Actual result: No matter what theme is selected, the background color has not been changed in layout. Expected result: Select a theme, background color of label in layout is changed.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/ReportDesignEditPart.java
ReportDesignMarginBorder reportDesignMarginBorder = new ReportDesignMarginBorder( getMasterPageInsets( masterPageHandle ) );
		reportDesignMarginBorder.setBackgroundColor( masterPageHandle.getProperty( StyleHandle.BACKGROUND_COLOR_PROP ) );
		getFigure( ).setBorder( reportDesignMarginBorder );
		int color = getBackgroundColor( masterPageHandle );
		getFigure( ).setBackgroundColor( ColorManager.getColor( color ) );
		refreshBackground( masterPageHandle );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.designer.internal.ui.editors.schematic.editparts.ReportElementEditPart#notifyChildrenDirty(boolean)
	 */
	protected void notifyChildrenDirty( boolean bool )
	{
		super.notifyChildrenDirty( bool );
		refreshVisuals( );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.gef.EditPart#activate()
	 */
	public void activate( )
	{
		super.activate( );
		if ( ( (ReportDesignHandleAdapter) getModelAdapter( ) ).getMasterPage( ) != null )
		{
			( (ReportDesignHandleAdapter) getModelAdapter( ) ).getMasterPage( )
					.addListener( this );