ReportItemHandle handle = (ReportItemHandle) editPart.getModel( ); stack.startTrans( Messages.getString( "DesignerActionBarContributor.menu.element.editDataBinding" ) ); DataBindingDialog dialog = new DataBindingDialog( PlatformUI.getWorkbench( ) .getDisplay( ) .getActiveShell( ), handle );
stack .startTrans( Messages .getString( "DesignerActionBarContributor.menu.element.editDataBinding" ) ); DataBindingDialog dialog = new DataBindingDialog( PlatformUI .getWorkbench( ).getDisplay( ).getActiveShell( ), getSelectedElement( ) );
	public void run( )	{		if ( Policy.TRACING_ACTIONS )		{			System.out.println( "Edit binding action >> Run ..." ); //$NON-NLS-1$		}		// Get the first item in the list and pass the model object to the		// dialog		TableEditPart editPart = getTableEditPart( );		if ( editPart != null )		{			CommandStack stack = SessionHandleAdapter.getInstance( )					.getCommandStack( );			ReportItemHandle handle = (ReportItemHandle) editPart.getModel( );			stack.startTrans( Messages.getString( "DesignerActionBarContributor.menu.element.editDataBinding" ) ); //$NON-NLS-1$			DataBindingDialog dialog = new DataBindingDialog( PlatformUI.getWorkbench( )					.getDisplay( )					.getActiveShell( ),					handle );			if ( dialog.open( ) == Dialog.OK )			{				stack.commit( );			}			else			{				stack.rollback( );			}		}	}