Author: Grid.Qian
Date: 2009-12-17 01:09:44 -0500 (Thu, 17 Dec 2009)
New Revision: 19380
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/commands/CompoundCommand.java
Log:
JBIDE-5340: Activities disappear when moved, cannot edit source to fix them
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/commands/CompoundCommand.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/commands/CompoundCommand.java 2009-12-17
03:25:37 UTC (rev 19379)
+++
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/commands/CompoundCommand.java 2009-12-17
06:09:44 UTC (rev 19380)
@@ -1,7 +1,6 @@
package org.eclipse.bpel.ui.commands;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@@ -41,6 +40,18 @@
return true;
}
+ public boolean canDoExecute() {
+ if (commandList.size() == 0)
+ return false;
+ for (Command cmd : commandList) {
+ if (cmd == null)
+ return false;
+ if ((cmd instanceof AutoUndoCommand) &&
!((AutoUndoCommand)cmd).canDoExecute())
+ return false;
+ }
+ return true;
+ }
+
public void dispose() {
for (Command cmd : commandList)
cmd.dispose();
Show replies by date