GroupDialog dialog = new GroupDialog( getDefaultShell( ) );
GroupDialog dialog = new GroupDialog( getDefaultShell( ), GroupDialog.GROUP_DLG_TITLE_NEW );
	private static boolean addGroup( DesignElementHandle parent, int position )			throws SemanticException	{		GroupHandle groupHandle = null;		SlotHandle slotHandle = null;		// ElementFactory factory = parent.getElementFactory( );		DesignElementFactory factory = DesignElementFactory.getInstance( parent.getModuleHandle( ) );		if ( parent instanceof TableHandle )		{			groupHandle = factory.newTableGroup( );			slotHandle = ( (TableHandle) parent ).getGroups( );			int columnCount = ( (TableHandle) parent ).getColumnCount( );			groupHandle.getHeader( ).add( factory.newTableRow( columnCount ) );			groupHandle.getFooter( ).add( factory.newTableRow( columnCount ) );		}		else if ( parent instanceof ListHandle )		{			groupHandle = factory.newListGroup( );			slotHandle = ( (ListHandle) parent ).getGroups( );		}		if ( groupHandle != null && slotHandle != null )		{			slotHandle.add( groupHandle, position );			if ( !DEUtil.getDataSetList( parent ).isEmpty( ) )			{// If data set can be found or a blank group will be inserted.				GroupDialog dialog = new GroupDialog( getDefaultShell( ) );				dialog.setDataSetList( DEUtil.getDataSetList( parent ) );				dialog.setInput( groupHandle );				if ( dialog.open( ) == Window.CANCEL )				{// Cancel the action					return false;				}			}			return true;		}		return false;	}