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
addListeners( );
		
		viewer.getViewer( ).setInput( columnHandles );
		viewer.updateButtons( );
        
		( (DataSetHandle) getContainer( ).getModel( ) ).addListener( this );
		return viewer.getControl( );
	}
	
	protected void addListeners( )
	{
		viewer.getAddButton( ).addSelectionListener( new SelectionListener( ) {
			public void widgetSelected( SelectionEvent e )
			{
				doNew( );
			}
			public void widgetDefaultSelected( SelectionEvent arg0 )
			{
			}
		} );
		viewer.getEditButton( ).addSelectionListener( new SelectionListener( ) {
			public void widgetSelected( SelectionEvent e )
			{
				doEdit( );
			}
			public void widgetDefaultSelected( SelectionEvent arg0 )
			{
			}
		} );
	}