Add Workspace::paneForUri

This commit is contained in:
probablycorey
2014-02-18 14:39:53 -08:00
committed by Corey Johnson & Nathan Sobo
parent b8d8ae68a3
commit 6f8cb24e5a

View File

@@ -157,6 +157,11 @@ class Workspace extends Model
getActivePane: ->
@paneContainer.activePane
# Public: Returns the first pane {Pane} with an item for the given uri or
# undefined if none exists.
paneForUri: (uri) ->
@paneContainer.paneForUri(uri)
# Public: save the active item.
saveActivePaneItem: ->
@activePane?.saveActiveItem()