Bug 184371 An icon for cross tab should be add when create it as a template item [02]
Description: An icon for cross tab should be add when create it as a template item. Build number: 2.2.0.v20070427-1305 Steps to reproduce: 1. New a cross tab and revert it to template item. Expected result: An icon representing crosstab should be add. Actual result: See the screenshot. Error log: N/A
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/extension/experimental/EditpartExtensionManager.java
private static Map extensionMap = new HashMap( );
	private static List palettes = new ArrayList( );
	static
	{
		IExtensionRegistry registry = Platform.getExtensionRegistry( );
		IExtensionPoint extensionPoint = registry.getExtensionPoint( "org.eclipse.birt.report.designer.ui.reportItemEditpart" );
		if ( extensionPoint != null )
		{
			IConfigurationElement[] elements = extensionPoint.getConfigurationElements( );
			for ( int i = 0; i < elements.length; i++ )
			{
				IConfigurationElement[] enablements = elements[i].getChildren( "enablement" );
				if ( enablements.length == 0 )
					continue;
				try
				{
					extensionMap.put( ExpressionConverter.getDefault( )
							.perform( enablements[0] ), elements[i] );
				}
				catch ( CoreException e )
				{
					e.printStackTrace( );
				}
				IConfigurationElement[] paletteEntries = elements[i].getChildren( "paletteEntry" );
				if ( paletteEntries.length == 1 )
				{
					PaletteEntryExtension entry = new PaletteEntryExtension( );
					entry.setItemName( paletteEntries[0].getAttribute( "itemName" ) );
					
					entry.setLabel( paletteEntries[0].getAttribute( "label" ) );