System.out.println( "Add groupo action >> Run ..." ); } CommandStack stack = getActiveCommandStack( ); stack.startTrans( STACK_MSG_ADD_GROUP ); boolean retValue = false; if ( getTableEditPart( ) != null ) { retValue = getTableEditPart( ).insertGroup( ); } else { retValue = getListEditPart( ).insertGroup( ); } if ( retValue ) { stack.commit( ); } else { stack.rollbackAll( );
action.run( );
	public void run( )	{		if ( Policy.TRACING_ACTIONS )		{			System.out.println( "Add groupo action >> Run ..." ); //$NON-NLS-1$		}		CommandStack stack = getActiveCommandStack( );		stack.startTrans( STACK_MSG_ADD_GROUP );		boolean retValue = false;		if ( getTableEditPart( ) != null )		{			retValue = getTableEditPart( ).insertGroup( );		}		else		{			retValue = getListEditPart( ).insertGroup( );		}		if ( retValue )		{			stack.commit( );		}		else		{			stack.rollbackAll( );		}	}