Bug 190957 The cancel button in group level dialog in cube take no effect[1101]
Description: The cancel button in group level dialog in cube take no effect[1101] Build number: 2.2.0.v20070605-0630 Steps to reproduce: 1, New a cube 2, New a level 3, Do some operations on the level 4, Click cancel button Expected result: The cancel button can take effect to cancel all the operations Actual result: The cancel button take no effect and all the operations have done
UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/page/CubeGroupContent.java
/**
			 * CubeModel can and a group or a summary field
			 */
			else if ( obj instanceof PropertyHandle )
				addBtn.setEnabled( true );
			/**
			 * Only Level Handle has EditBtn and PropBtn.
			 */
			if ( obj instanceof LevelHandle )
			{
				TabularLevelHandle level = (TabularLevelHandle) obj;
				if ( level != null
						&& level.attributesIterator( ) != null
						&& level.attributesIterator( ).hasNext( ) )
				{
					String name = level.getName( ) + " (" 
							+ level.getColumnName( )
							+ ": "; 
					Iterator attrIter = level.attributesIterator( );
					while ( attrIter.hasNext( ) )
					{
						name += ( (LevelAttributeHandle) attrIter.next( ) ).getName( );
						if ( attrIter.hasNext( ) )
							name += ", "; 
					}
					name += ")"; 
					groupViewer.getTree( ).getSelection( )[0].setText( name );
				}
				editBtn.setEnabled( true );
			}