Bug 122195 Smoke-Regression:Eclispe 3.0: Can not create template report item.
Smoke:Eclispe 3.0: Can not create template report item. Steps: 1.Drag a label into layout 2.Select the label, right clight the mouse, select "Create Template Report Item..." 3.Click "Ok" button Actual Results: 1.System throws exception org.eclipse.birt.report.designer.core.runtime.GUIException: Caused by java.lang.NullPointerException. at org.eclipse.birt.report.designer.core.runtime.GUIException.createGUIException(GUIException.java:76) at org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler.handle(ExceptionHandler.java:123) at org.eclipse.birt.report.designer.internal.ui.util.ExceptionHandler.handle(ExceptionHandler.java:105) at org.eclipse.birt.report.designer.internal.ui.views.actions.AbstractElementAction.handleException(AbstractElementAction.java:132) at org.eclipse.birt.report.designer.internal.ui.views.actions.AbstractElementAction.run(AbstractElementAction.java:91) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.actions.WrapperSelectionAction.run(WrapperSelectionAction.java:60) at org.eclipse.jface.action.Action.runWithEvent(Action.java:881) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866) at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688) Caused by: java.lang.NullPointerException at org.eclipse.birt.report.designer.internal.ui.editors.schematic.figures.TextFlow.paintTo(TextFlow.java:194) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.figures.TextFlow.paintFigure(TextFlow.java:284) at org.eclipse.draw2d.Figure.paint(Figure.java:948) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:986) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1013) at org.eclipse.draw2d.Figure.paint(Figure.java:950) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:986) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1018) at org.eclipse.draw2d.Figure.paint(Figure.java:950) at org.eclipse.birt.report.designer.internal.ui.editors.schematic.figures.ReportRootFigure.paintChildren(ReportRootFigure.java:95) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1022) at org.eclipse.draw2d.Figure.paint(Figure.java:950) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:986) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1018) at org.eclipse.draw2d.Figure.paint(Figure.java:950) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:986) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1018) at org.eclipse.draw2d.Figure.paint(Figure.java:950) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:986) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1018) at org.eclipse.draw2d.ScalableFreeformLayeredPane.paintClientArea(ScalableFreeformLayeredPane.java:54) at org.eclipse.draw2d.Figure.paint(Figure.java:950) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:986) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1018) at org.eclipse.draw2d.Figure.paint(Figure.java:950) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:986) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1013) at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:156) at org.eclipse.draw2d.Figure.paint(Figure.java:950) at org.eclipse.draw2d.Figure.paintChildren(Figure.java:986) at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1018) at org.eclipse.draw2d.Figure.paint(Figure.java:950) at org.eclipse.draw2d.DeferredUpdateManager.repairDamage(DeferredUpdateManager.java:201) at org.eclipse.draw2d.DeferredUpdateManager.performUpdate(DeferredUpdateManager.java:139) at org.eclipse.birt.report.designer.internal.ui.editors.notification.ReportDeferredUpdateManager.performUpdate(ReportDeferredUpdateManager.java:33) at org.eclipse.draw2d.DeferredUpdateManager.performUpdate(DeferredUpdateManager.java:123) at org.eclipse.draw2d.LightweightSystem.paint(LightweightSystem.java:223) at org.eclipse.draw2d.LightweightSystem$4.handleEvent(LightweightSystem.java:127) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805) at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:803) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3020) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338) at org.eclipse.swt.internal.win32.OS.RedrawWindow(Native Method) at org.eclipse.swt.widgets.Control.update(Control.java:2865) at org.eclipse.swt.widgets.Display.update(Display.java:3245) at org.eclipse.jface.window.Window.runEventLoop(Window.java:674) at org.eclipse.jface.window.Window.open(Window.java:648) at org.eclipse.birt.report.designer.internal.ui.dialogs.BaseDialog.open(BaseDialog.java:145) at org.eclipse.birt.report.designer.internal.ui.views.DefaultNodeProvider.performCreatePlaceHolder(DefaultNodeProvider.java:441) at org.eclipse.birt.report.designer.internal.ui.views.DefaultNodeProvider.performRequest(DefaultNodeProvider.java:363) at org.eclipse.birt.report.designer.internal.ui.views.actions.CreatePlaceHolderAction.doAction(CreatePlaceHolderAction.java:42) at org.eclipse.birt.report.designer.internal.ui.views.actions.AbstractElementAction.run(AbstractElementAction.java:64) ... 24 more Expected Results: 1.Can create template report item.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/figures/LabelFigure.java
* Sets the line-through style of the text.
	 * 
	 * @param textLineThrough
	 *            The textLineThrough to set.
	 */
	public void setTextLineThrough( String textLineThrough )
	{
		label.setTextLineThrough( textLineThrough );
	}
	/**
	 * Sets the underline style of the text.
	 * 
	 * @param textUnderline
	 *            The textUnderline to set.
	 */
	public void setTextUnderline( String textUnderline )
	{
		label.setTextUnderline( textUnderline );
	}
	/**
	 * Sets the horizontal text alignment style.
	 * 
	 * @param textAlign
	 *            The textAlign to set.
	 */
	public void setTextAlign( String textAlign )
	{
		label.setTextAlign( textAlign );
	}
	/**