   getTodos: ->
     @collection.getTodos()
 
-  showError: (message) ->
-    atom.notifications.addError 'todo-show', detail: message, dismissable: true
+  showError: (message = '') ->
+    atom.notifications.addError message, @notificationOptions
+
+  showWarning: (message = '') ->
+    atom.notifications.addWarning message, @notificationOptions
 
   saveAs: =>
     return if @collection.isSearching()

    @collection.search()
    @setScopeButtonState(@collection.getSearchScope())

    @disposables.add atom.tooltips.add @scopeButton, title: "What to Search"
    @disposables.add atom.tooltips.add @optionsButton, title: "Show Todo Options"
    @disposables.add atom.tooltips.add @saveAsButton, title: "Save Todos to File"


  filter: ->
    @collection.filterTodos @filterBuffer.getText()

  checkDeprecation: ->
    if atom.config.get('todo-show.findTheseRegexes')
      @showWarning '''
      Deprecation Warning:\n
      `findTheseRegexes` config is deprecated, please use `findTheseTodos` and `findUsingRegex` for custom behaviour.
      See https://github.com/mrodalgaard/atom-todo-show#config for more information.
      '''
