Reorder the sections so public methods are closer to the top

This commit is contained in:
Ben Ogle
2014-09-16 13:26:58 -07:00
parent cf927e6405
commit dbf8094fdb

View File

@@ -530,7 +530,23 @@ class Atom extends Model
callback?()
###
Section: Deserialization
Section: Managing the Dev Tools
###
# Public: Open the dev tools for the current window.
openDevTools: ->
ipc.send('call-window-method', 'openDevTools')
# Public: Toggle the visibility of the dev tools for the current window.
toggleDevTools: ->
ipc.send('call-window-method', 'toggleDevTools')
# Public: Execute code in dev tools.
executeJavaScriptInDevTools: (code) ->
ipc.send('call-window-method', 'executeJavaScriptInDevTools', code)
###
Section: Private
###
deserializeProject: ->
@@ -562,9 +578,6 @@ class Atom extends Model
@deserializeProject()
@deserializeWorkspaceView()
loadThemes: ->
@themes.load()
@@ -582,26 +595,6 @@ class Atom extends Model
@subscribe @project, 'path-changed', onProjectPathChanged
onProjectPathChanged()
###
Section: Managing the Dev Tools
###
# Public: Open the dev tools for the current window.
openDevTools: ->
ipc.send('call-window-method', 'openDevTools')
# Public: Toggle the visibility of the dev tools for the current window.
toggleDevTools: ->
ipc.send('call-window-method', 'toggleDevTools')
# Public: Execute code in dev tools.
executeJavaScriptInDevTools: (code) ->
ipc.send('call-window-method', 'executeJavaScriptInDevTools', code)
exit: (status) ->
app = remote.require('app')
app.emit('will-exit')
@@ -613,8 +606,6 @@ class Atom extends Model
setRepresentedFilename: (filename) ->
ipc.send('call-window-method', 'setRepresentedFilename', filename)
showSaveDialog: (callback) ->
callback(showSaveDialogSync())
@@ -631,7 +622,6 @@ class Atom extends Model
else
@getCurrentWindow().loadSettings.windowState = stateString
crashMainProcess: ->
remote.process.crash()