Bug 122869 Drag a parameter from data explorer view into a table in library, a new parameter is created automatically.
Description:Drag a parameter from data explorer view into a table in library, a new parameter is created automatically. Steps to reproduce: 1. Add a cascading parameter and a table in a library file. 2. Drag a parameter from data explorer view into a table cell in layout editor. 3. Find that a new parameter was added in data explorer view automatically.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ExpressionBuilder.java
sourceViewer.setDocument( document );
		}
		GridData gd = new GridData( GridData.FILL_BOTH );
		gd.heightHint = 150;
		sourceViewer.getControl( ).setLayoutData( gd );
		sourceViewer.getTextWidget( ).addKeyListener( new KeyAdapter( ) {
			public void keyPressed( KeyEvent e )
			{
				if ( isUndoKeyPress( e ) )
				{
					sourceViewer.doOperation( ITextOperationTarget.UNDO );
				}
				else if ( isRedoKeyPress( e ) )
				{
					sourceViewer.doOperation( ITextOperationTarget.REDO );
				}
			}
			private boolean isUndoKeyPress( KeyEvent e )
			{
				return ( ( e.stateMask & SWT.CONTROL ) > 0 )
						&& ( ( e.keyCode == 'z' ) || ( e.keyCode == 'Z' ) );
			}
			private boolean isRedoKeyPress( KeyEvent e )
			{
				return ( ( e.stateMask & SWT.CONTROL ) > 0 )
						&& ( ( e.keyCode == 'y' ) || ( e.keyCode == 'Y' ) );
			}
		} );
		buttonBar = new Composite( expressionArea, SWT.NONE );
		buttonBar.setLayout( UIUtil.createGridLayoutWithoutMargin( ) );