| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 UI.shortcutsScreen = new UI.ShortcutsScreen(); | 176 UI.shortcutsScreen = new UI.ShortcutsScreen(); |
| 177 // set order of some sections explicitly | 177 // set order of some sections explicitly |
| 178 UI.shortcutsScreen.section(Common.UIString('Elements Panel')); | 178 UI.shortcutsScreen.section(Common.UIString('Elements Panel')); |
| 179 UI.shortcutsScreen.section(Common.UIString('Styles Pane')); | 179 UI.shortcutsScreen.section(Common.UIString('Styles Pane')); |
| 180 UI.shortcutsScreen.section(Common.UIString('Debugger')); | 180 UI.shortcutsScreen.section(Common.UIString('Debugger')); |
| 181 UI.shortcutsScreen.section(Common.UIString('Console')); | 181 UI.shortcutsScreen.section(Common.UIString('Console')); |
| 182 | 182 |
| 183 Workspace.fileManager = new Workspace.FileManager(); | 183 Workspace.fileManager = new Workspace.FileManager(); |
| 184 Workspace.workspace = new Workspace.Workspace(); | 184 Workspace.workspace = new Workspace.Workspace(); |
| 185 Common.formatterWorkerPool = new Common.FormatterWorkerPool(); | 185 Common.formatterWorkerPool = new Common.FormatterWorkerPool(); |
| 186 Workspace.fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isol
atedFileSystemManager); | 186 Persistence.fileSystemMapping = new Persistence.FileSystemMapping(Workspace.
isolatedFileSystemManager); |
| 187 | 187 |
| 188 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa
nager, Workspace.workspace); | 188 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa
nager, Workspace.workspace); |
| 189 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole
MessageHelper(Workspace.workspace); | 189 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole
MessageHelper(Workspace.workspace); |
| 190 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa
nager, Workspace.workspace); | 190 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa
nager, Workspace.workspace); |
| 191 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD
K.targetManager, Workspace.workspace); | 191 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD
K.targetManager, Workspace.workspace); |
| 192 Bindings.breakpointManager = | 192 Bindings.breakpointManager = |
| 193 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana
ger, Bindings.debuggerWorkspaceBinding); | 193 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana
ger, Bindings.debuggerWorkspaceBinding); |
| 194 Extensions.extensionServer = new Extensions.ExtensionServer(); | 194 Extensions.extensionServer = new Extensions.ExtensionServer(); |
| 195 | 195 |
| 196 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemManag
er, Workspace.workspace); | 196 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemManag
er, Workspace.workspace); |
| 197 Persistence.persistence = | 197 Persistence.persistence = |
| 198 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana
ger, Workspace.fileSystemMapping); | 198 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana
ger, Persistence.fileSystemMapping); |
| 199 | 199 |
| 200 new Main.ExecutionContextSelector(SDK.targetManager, UI.context); | 200 new Main.ExecutionContextSelector(SDK.targetManager, UI.context); |
| 201 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor
kspaceBinding); | 201 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor
kspaceBinding); |
| 202 | 202 |
| 203 new Main.Main.PauseListener(); | 203 new Main.Main.PauseListener(); |
| 204 new Main.Main.InspectedNodeRevealer(); | 204 new Main.Main.InspectedNodeRevealer(); |
| 205 new Main.NetworkPanelIndicator(); | 205 new Main.NetworkPanelIndicator(); |
| 206 new Main.SourcesPanelIndicator(); | 206 new Main.SourcesPanelIndicator(); |
| 207 new Main.BackendSettingsSync(); | 207 new Main.BackendSettingsSync(); |
| 208 | 208 |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 * @override | 948 * @override |
| 949 * @return {?Element} | 949 * @return {?Element} |
| 950 */ | 950 */ |
| 951 settingElement() { | 951 settingElement() { |
| 952 return UI.SettingsUI.createSettingCheckbox( | 952 return UI.SettingsUI.createSettingCheckbox( |
| 953 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 953 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 954 } | 954 } |
| 955 }; | 955 }; |
| 956 | 956 |
| 957 new Main.Main(); | 957 new Main.Main(); |
| OLD | NEW |