Bug 201991 Reload of the used external file doesn't affect the layout editor
1. Create a external css file with contents as following in current project. .report { font-family : sans-serif; font-size : medium; font-weight : bold; color : #0000FF; } 2. In outline view, right clikc styles->use CSS file... action. In the file selction dialog, point to the css file that created in step 1. 3. The css file affects the layout editor all right. 4. Opened the css file and changed the name to .report1. 5. right clicked the css file node and clicked the reload action. 6. the css file node in outline view were reloaded all right. 7. the layout editor didn't refreshed all right. It sill showed the result with previous style.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/CssCommand.java
import org.eclipse.birt.report.model.activity.AbstractElementCommand;
import org.eclipse.birt.report.model.activity.ActivityStack;
import org.eclipse.birt.report.model.api.StructureFactory;
import org.eclipse.birt.report.model.api.activity.ActivityStackEvent;
import org.eclipse.birt.report.model.api.activity.SemanticException;
import org.eclipse.birt.report.model.api.command.CssException;
import org.eclipse.birt.report.model.api.command.CssReloadedEvent;
import org.eclipse.birt.report.model.api.css.StyleSheetException;
import org.eclipse.birt.report.model.api.elements.structures.IncludedCssStyleSheet;
import org.eclipse.birt.report.model.api.metadata.PropertyValueException;
import org.eclipse.birt.report.model.core.CachedMemberRef;
import org.eclipse.birt.report.model.core.DesignElement;
import org.eclipse.birt.report.model.core.Module;
import org.eclipse.birt.report.model.css.CssStyleSheet;
import org.eclipse.birt.report.model.css.CssStyleSheetAdapter;
import org.eclipse.birt.report.model.elements.ICssStyleSheetOperation;
import org.eclipse.birt.report.model.elements.interfaces.IReportDesignModel;
import org.eclipse.birt.report.model.metadata.ElementPropertyDefn;
/**
 * Represents the command for adding and dropping css from report design or
 * theme.
 * 
 */
public class CssCommand extends AbstractElementCommand
{
	/**
	 * Construct the command with the report design.
	 * 
	 * @param module
	 *            the report design