text: /********************************************************************************
   * generated by de.acegen
   ********************************************************************************/
  
  
  
  
  import SynchronousCommand from "../../ace/SynchronousCommand";
  import Event from "../../ace/Event";
  import * as AppUtils from "../../../src/AppUtils";
  import * as AppState from "../../../src/AppState";
  
  export default class AbstractCancelSaveBugDialogCommand extends SynchronousCommand {
      constructor() {
          super("common.CancelSaveBugDialogCommand");
      }
  
      initCommandData(data) {
          data.outcomes = [];
      }
  
  	addOkOutcome(data) {
  		data.outcomes.push("ok");
  	}
  	
  	publishEvents(data) {
  		return new Promise((resolve) => {
  			const events = [];
  			const actionsToBeTriggered = [];
  			if (data.outcomes.includes("ok")) {
  				events.push(new Event('common.CancelSaveBugDialogOkEvent'));
  			}
  			
  			this.publish(events, data).then(() => {
  		  		AppState.stateUpdated();
  				this.trigger(actionsToBeTriggered).then(resolve);
  			});
  		})
  	
  	}
  
  }
  
  
  
  
  /******* S.D.G. *******/
  
  
  
  