Bug 182076 Delete a style from a report item doesn't affect report xml source
Steps to reproduce: 1.Insert a label onto layout; 2.New a style, suppose named it "NewStyle"; 3.Right click the label and on the drop down list, choose Style->Apply Style->NewStyle; 4.Save the report design; 5.Right click the label and on the drop down list, choose Style->Delete Style->NewStyle; 6.Save the report design; Expected result: NewStyle is deleted from report design, and the label doesn't have the style property. Actual result: Switch to report xml source, a error mark indicate that the label still has a style property:<property name="style">NewStyle</property>
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/commands/DeleteCommand.java
import org.eclipse.birt.report.designer.util.DNDUtil;
import org.eclipse.birt.report.designer.util.ImageManager;
import org.eclipse.birt.report.model.api.CellHandle;
import org.eclipse.birt.report.model.api.ColumnHandle;
import org.eclipse.birt.report.model.api.DesignElementHandle;
import org.eclipse.birt.report.model.api.EmbeddedImageHandle;
import org.eclipse.birt.report.model.api.ListGroupHandle;
import org.eclipse.birt.report.model.api.ListHandle;
import org.eclipse.birt.report.model.api.MasterPageHandle;
import org.eclipse.birt.report.model.api.ReportDesignHandle;
import org.eclipse.birt.report.model.api.ReportElementHandle;
import org.eclipse.birt.report.model.api.RowHandle;
import org.eclipse.birt.report.model.api.SlotHandle;
import org.eclipse.birt.report.model.api.ThemeHandle;
import org.eclipse.birt.report.model.api.activity.SemanticException;
import org.eclipse.birt.report.model.api.core.IStructure;
import org.eclipse.birt.report.model.api.css.CssStyleSheetHandle;
import org.eclipse.gef.commands.Command;
import org.eclipse.jface.viewers.StructuredSelection;
/**
 * Deletes single, multiple objects or do nothing.
 * 
 * 
 */
public class DeleteCommand extends Command
{
	private Object model = null;
	private ArrayList embeddedImageList = new ArrayList( );
	/**
	 * Deletes the command