mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Reorder the sections so public methods are closer to the top
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user