   itemAtIndex: (index) ->
     @items[index]
 
-  # Public: Switches to the next contained item.
+  # Public: Makes the next item active.
   showNextItem: ->
     index = @getActiveItemIndex()
     if index < @items.length - 1

    else
      @saveItemAs(item, nextAction)

  # Public: Prompts for path and then saves the specified item. Upon completion
  # it also calls the next action.
  saveItemAs: (item, nextAction) ->
    return unless item.saveAs?


      item.saveAs(path)
      nextAction?()

  # Public: Saves all items.
  saveItems: ->
    @saveItem(item) for item in @getItems()

  # Public: Returns the first item that matches the given URI or undefined if
  # none exists.
  itemForUri: (uri) ->
    find @items, (item) -> item.getUri?() is uri

  # Public: Activates the first item that matches the given URI. Returns a
  # boolean indicating whether a matching item was found.
  showItemForUri: (uri) ->
    if item = @itemForUri(uri)
      @showItem(item)
