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
entry.setDescription( paletteEntries[0].getAttribute( "description" ) );
					entry.setIcon( getImageDescriptor( paletteEntries[0],
							paletteEntries[0].getAttribute( "icon" ) ) );
					entry.setIconLarge( getImageDescriptor( paletteEntries[0],
							paletteEntries[0].getAttribute( "iconLarge" ) ) );
					
					entry.setCategory( paletteEntries[0].getAttribute( "category" ) );
					
					entry.setCommand( paletteEntries[0].getAttribute( "createCommand" ) );
					palettes.add( entry );
				}
			}
		}
	}
	private static ImageDescriptor getImageDescriptor(
			IConfigurationElement extension, String iconPath )
	{
		if ( iconPath == null )
		{
			return null;
		}
		URL path = Platform.getBundle( extension.getNamespace( ) )
				.getEntry( "/" ); 
		try
		{
			return ImageDescriptor.createFromURL( new URL( path, iconPath ) );
		}
		catch ( MalformedURLException e )
		{
		}