inputGroup.setTocExpression( UIUtil.convertToModelString( tocEditor.getText( ), true ) );
	protected void okPressed( )	{		try		{			inputGroup.setName( nameEditor.getText( ) );			String newExpr = exprEditor.getText( );			if ( newExpr != null && !newExpr.equalsIgnoreCase( oldExpr ) )			{				inputGroup.setTocExpression( newExpr );			}			int index = keyChooser.getSelectionIndex( );			String oldKey = inputGroup.getKeyExpr( );			String newKey = null;			if ( index == -1 )			{				newKey = keyChooser.getText( );			}			else			{				newKey = DEUtil.getExpression( columnList.get( index ) );			}			if ( !newKey.equals( oldKey ) )			{				inputGroup.setKeyExpr( newKey );				SlotHandle slotHandle = null;				if ( inputGroup instanceof ListGroupHandle )				{					slotHandle = inputGroup.getHeader( );				}				else if ( inputGroup instanceof TableGroupHandle )				{					if ( inputGroup.getHeader( ).getCount( ) != 0 )					{						RowHandle rowHandle = ( (RowHandle) inputGroup.getHeader( )								.get( 0 ) );						CellHandle cellHandle = (CellHandle) rowHandle.getCells( )								.get( 0 );						slotHandle = cellHandle.getContent( );					}				}				if ( slotHandle != null )				{					Object insertObj = index == -1 ? newKey							: columnList.get( index );					DesignElementHandle dataItemHandle = InsertInLayoutUtil.performInsert( insertObj,							slotHandle,							inputGroup.getContainer( ) );					slotHandle.add( dataItemHandle );				}			}			index = intervalType.getSelectionIndex( );			inputGroup.setInterval( intervalChoices[index].getName( ) );			if ( index != 0 )			{				inputGroup.setIntervalRange( intervalRange.getSelection( ) );			}			if ( inputGroup instanceof TableGroupHandle )			{				if ( includeHeader.getSelection( ) != inputGroup.hasHeader( ) )				{// the include header status changed					if ( includeHeader.getSelection( ) )					{// from unchecked to checked						inputGroup.getHeader( ).add( createRow( ) );					}					else					{// from checked to unchecked,clear the slot						inputGroup.clearContents( GroupHandle.HEADER_SLOT );					}				}				if ( includeFooter.getSelection( ) != inputGroup.hasFooter( ) )				{// the include footer status changed					if ( includeFooter.getSelection( ) )					{// from unchecked to checked						inputGroup.getFooter( ).add( createRow( ) );					}					else					{// from checked to unchecked,clear the slot						inputGroup.clearContents( GroupHandle.FOOTER_SLOT );					}				}			}			if ( ascending.getSelection( ) )			{				inputGroup.setSortDirection( DesignChoiceConstants.SORT_DIRECTION_ASC );			}			else			{				inputGroup.setSortDirection( DesignChoiceConstants.SORT_DIRECTION_DESC );			}		}		catch ( SemanticException e )		{			ExceptionHandler.handle( e );			return;		}		setResult( inputGroup );		super.okPressed( );	}