Bug 320462 Refactor script data set related pages' codes[29044]
Build Identifier: 20100719 Refactor script functions related codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/OutputColumnDefnPage.java
{
					doRemoveAll( );
				}
			} );
			viewer.getTable( ).setMenu( menu );
			viewer.getTable( ).addKeyListener( new KeyListener( ) {
				public void keyPressed( KeyEvent e )
				{
					viewer.getTable( );
				}
				public void keyReleased( KeyEvent e )
				{
					if ( e.keyCode == SWT.DEL )
					{
						removeSelectedItem( );
					}
				}
			} );
		}
		private int getMaxWidth( Control control, int size )
		{
			int width = control.computeSize( -1, -1 ).x;
			return width > size ? width : size;
		}
		/**
		 * Updates the buttons and menu items
		 * on this page are set
		 */
		private void updateButtons( )
		{