Add atom.openWindow()

This commit is contained in:
Kevin Sawicki
2013-06-25 12:22:10 -07:00
committed by Nathan Sobo
parent b842a727ee
commit 31d872fbfe
2 changed files with 6 additions and 0 deletions

View File

@@ -175,6 +175,9 @@ window.atom =
openConfig: ->
ipc.sendChannel('open-config')
openWindow: (windowSettings) ->
ipc.sendChannel('open-window', windowSettings)
confirm: (message, detailedMessage, buttonLabelsAndCallbacks...) ->
buttons = []
callbacks = []

View File

@@ -184,6 +184,9 @@ class AtomApplication
else
@promptForPath()
ipc.on 'open-window', (processId, routingId, windowSettings) ->
new AtomWindow(windowSettings)
ipc.on 'open-dev', (processId, routingId, pathsToOpen) =>
if pathsToOpen?.length > 0
@openPaths({pathsToOpen, devMode: true})