Bug 122045 Template should show blank preview when there is no image
Create a template but do not associate an image with it. Place the template in the templates directory. Now, create a new report design. On the second page of the New Report dialog, select the template that has no image. Actual result: The preview appears as a white rectangle with a small red square in the top left. Expected result: The preview appears as a gray background in the preview image area.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/ReportPlatformUIImages.java
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.designer.ui;
import java.net.MalformedURLException;
import java.net.URL;
import org.eclipse.birt.report.designer.internal.ui.extension.IExtensionConstants;
import org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler;
import org.eclipse.birt.report.model.api.DesignElementHandle;
import org.eclipse.birt.report.model.api.ExtendedItemHandle;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.ISharedImages;
/**
 * This class provides the UI images for JRP platform.
 * 
 * 
 */
public class ReportPlatformUIImages