Bug 314634 Refactor data set editor pages' codes[26435]
Build Identifier: 20100525 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/OutputColumnDefnPage.java
public void keyPressed( KeyEvent e )
				{
					viewer.getTable( );
				}
				public void keyReleased( KeyEvent e )
				{
					if ( e.keyCode == SWT.DEL )
					{
						removeSelectedItem( );
					}
				}
			} );
		}
		/**
		 * Updates the buttons and menu items
		 * on this page are set
		 */
		private void updateButtons( )
		{
			this.itmRemoveAll.setEnabled( viewer.getTable( ).getItemCount( ) > 0 );
			if ( viewer.getTable( ).getSelectionCount( ) == 1 )
			{
				this.btnEdit.setEnabled( true );
				this.btnRemove.setEnabled( true );
				this.itmRemove.setEnabled( true );
				int index = viewer.getTable( ).getSelectionIndex( );
				this.btnUp.setEnabled( index != 0 );
				this.btnDown.setEnabled( index != ( viewer.getTable( )
						.getItemCount( ) - 1 ) );
			}