Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[bpel-dev] question about commands

Hi,

 

I’m wondering why BPELCopyCommand extends AutoUndoCommand, moreover, doExecute method takes care about unfo/redo?

 

      public void doExecute() {

            TransferBuffer transferBuffer = fBpelEditor.getTransferBuffer();

            undo = transferBuffer.getContents();

            transferBuffer.copyObjectsToTransferBuffer(fOriginalObjects, fBpelEditor.getExtensionMap());

            redo = transferBuffer.getContents();

      }

 

From my point of view the ‘copy’ command should not change undo stack. Any objections?

 

Thanks,

  Oleg.

--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park, 
17 Krylatskaya Str., Bldg 4, Moscow 121614, 
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Back to the top