Package org.eclipse.bpel.common.ui.editmodel.EditModelCommandStack

Examples of org.eclipse.bpel.common.ui.editmodel.EditModelCommandStack.SharedCommandStackChangedEvent


    this.commandStack = editModelCommandStack;
    editModelCommandStack.addCommandStackListener(new CommandStackListener() {
      public void commandStackChanged(EventObject event) {
        if (ignoreEvents) return;
        if (event instanceof SharedCommandStackChangedEvent) {
          SharedCommandStackChangedEvent e = (SharedCommandStackChangedEvent)event;
          // Finish up the change in progress before we execute something else
          if (e.getProperty() == SharedCommandStackListener.EVENT_START_EXECUTE) {
            applyCurrentChange();
          }
          // FIXME: what about redo?
          if(e.getProperty() == SharedCommandStackListener.EVENT_START_UNDO) {
            if(commandStack.getUndoCommand() instanceof PlaceHolderCommand) {
              // TODO: what is this for again?
              if(currentChange != null)
                currentChange.restoreOldState();
            }
View Full Code Here

TOP

Related Classes of org.eclipse.bpel.common.ui.editmodel.EditModelCommandStack.SharedCommandStackChangedEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.