mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
Add Workspace::paneForUri
This commit is contained in:
committed by
Corey Johnson & Nathan Sobo
parent
b8d8ae68a3
commit
6f8cb24e5a
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user