Bug 154832 Wrong node is added to Report Parameters for cascading parameter in Palette view
Description: Wrong node is added to Report Parameters for cascading parameter in Palette view. Steps to reproduce: 1. New a report, add a cascading parameter 2. Switch to Script tab in Editor view, and then switch to Palette view 3. Expand Report Parameters node Expected result: A cascading parameter group is added to Report Parameters node Actual result: Expect a cascading parameter group is added to Report Parameters node, the children of the cascading parameter group are added as scalar parameters
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/ExpressionTreeSupport.java
}
		else if ( text.equalsIgnoreCase( "x--" ) )
		{
			text = textWidget.getSelectionText( ) + "--";
		}
		else if ( text.equalsIgnoreCase( "++x" ) )
		{
			text = "++" + textWidget.getSelectionText( );
		}
		else if ( text.equalsIgnoreCase( "--x" ) )
		{
			text = "--" + textWidget.getSelectionText( );
		}
		textWidget.insert( text );
		textWidget.setSelection( selectionStart + text.length( ) );
		textWidget.setFocus( );
		if ( text.endsWith( "()" ) ) 
		{
			textWidget.setCaretOffset( textWidget.getCaretOffset( ) - 1 ); 
		}
	}
	/**
	 * Adds drop support to viewer.Must set viewer before execution.
	 * 
	 */
	public void addDropSupportToViewer( )
	{
		Assert.isNotNull( expressionViewer );
		final StyledText text = expressionViewer.getTextWidget( );
		dropTarget = new DropTarget( text, DND.DROP_COPY | DND.DROP_DEFAULT );