 
     choice = atom.confirm(options);
     return options.buttons[choice].toLowerCase();
+
+  runProcessAfterSave: ->
+    @takeUserInput(@config.inputDialogs);
 
   takeUserInput: (inputDialogs) ->
     if inputDialogs.length > 0


    return null;

  # return true if the editors were saved and the process can be executed.
  # false if the user canceled saving and the process shouldn't execute.
  saveEditors: (editors) ->
    if editors.length == 0
      return true;

    option = 'yes';

    if @config.promptToSave
      option = @promptToSave(editors);

      if option == 'cancel'
        return false;

    if option == 'yes'
      for editor in editors
        editor.save();

    return true;

  # Prompt to ask if editors should be saved. Return 'yes', 'no' or 'cancel'
  promptToSave: (editors) ->

      @fields.fileDirPath = "";
      @fields.fileProjectPath = "";

    @saveDirtyFiles();


  # Return true if the execution should continue. false if the user canceled.
  saveDirtyFiles: ->
    if @config.saveOption == 'none'
      @runProcessAfterSave();
    else if @config.saveOption == 'all'
      return @saveEditors(@getAllDirtyEditors());
    else if @config.saveOption == 'referenced'
      return @saveEditors(@getReferencedDirtyEditors());
    else
      @runProcessAfterSave();


  getAllDirtyEditors: ->
    result = [];
