Bug 169030 Migrate to eclipse 3.3 SDK
This is a bug to investiage the processing of migration BIRT 2.2 code to last eclipse 3.3 SDK.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/figures/LabelFigure.java
public Dimension getPreferredSize( int wHint, int hHint )
	{
		Dimension dim = super.getPreferredSize( wHint, hHint );
		int rx = recommendSize != null ? recommendSize.width : 0;
		int ry = recommendSize != null ? recommendSize.height : 0;
		if ( DesignChoiceConstants.DISPLAY_BLOCK.equals( display ) )
		{
			return new Dimension( dim.width, Math.max( dim.height, ry ) );
		}
		if ( DesignChoiceConstants.DISPLAY_INLINE.equals( display ) )
		{
			return new Dimension( Math.max( dim.width, rx ),
					Math.max( dim.height, ry ) );
		}
		return dim;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.draw2d.Figure#getMinimumSize(int, int)
	 */
	public Dimension getMinimumSize( int wHint, int hHint )
	{
		if ( DesignChoiceConstants.DISPLAY_NONE.equals( display ) )
		{
			return ZERO_DIMENSION;
		}
		int rx = recommendSize != null ? recommendSize.width : 0;
		int ry = recommendSize != null ? recommendSize.height : 0;
		if ( wHint == -1 && hHint == -1 )