Bug 189080 Cancel button does not work when create dimensions in cube[1101]
Description: Create a group(dimension) in cube builder, click "cancel" button, but actually a dimension is created. Build:2.2.0.v20070525-1114 Steps to reproduce: 1.Create a sample datasource and dataset. 2.Create a cube, bind with the dataset. 3.In the "Cross Tab Cube Builder", click "add" button on the right margin. "Add Group" dialog pops up, then click "cancel" button, but the group is created in fact. Expect result: Click "Cancel" button works.
UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/page/CubeGroupContent.java
dataFieldsViewer.addSelectionChangedListener( new ISelectionChangedListener( ) {
			public void selectionChanged( SelectionChangedEvent event )
			{
				updateButtons( );
			}
		} );
		final DragSource fieldsSource = new DragSource( dataFieldsViewer.getTree( ),
				operations );
		fieldsSource.setTransfer( types );
		fieldsSource.addDragListener( new CustomDragListener( dataFieldsViewer ) );
	}
	private Button addBtn;
	private Button delBtn;
	private int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK;
	private Transfer[] types = new Transfer[]{
		TextTransfer.getInstance( )
	};
	private Button editBtn;
	public void load( )
	{
		if ( input != null )
		{
			if ( datasets[0] != null )
				dataFieldsViewer.setInput( datasets );
			else if ( input.getDataSet( ) != null )
				dataFieldsViewer.setInput( input );
			groupViewer.setInput( input );
			getListenerElementVisitor( ).addListener( input );
			updateButtons( );
		}