| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 Components.shortcutsScreen.section(Common.UIString('Elements Panel')); | 181 Components.shortcutsScreen.section(Common.UIString('Elements Panel')); |
| 182 Components.shortcutsScreen.section(Common.UIString('Styles Pane')); | 182 Components.shortcutsScreen.section(Common.UIString('Styles Pane')); |
| 183 Components.shortcutsScreen.section(Common.UIString('Debugger')); | 183 Components.shortcutsScreen.section(Common.UIString('Debugger')); |
| 184 Components.shortcutsScreen.section(Common.UIString('Console')); | 184 Components.shortcutsScreen.section(Common.UIString('Console')); |
| 185 | 185 |
| 186 Workspace.fileManager = new Workspace.FileManager(); | 186 Workspace.fileManager = new Workspace.FileManager(); |
| 187 Workspace.workspace = new Workspace.Workspace(); | 187 Workspace.workspace = new Workspace.Workspace(); |
| 188 Common.formatterWorkerPool = new Common.FormatterWorkerPool(); | 188 Common.formatterWorkerPool = new Common.FormatterWorkerPool(); |
| 189 Workspace.fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isol
atedFileSystemManager); | 189 Workspace.fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isol
atedFileSystemManager); |
| 190 | 190 |
| 191 var fileSystemWorkspaceBinding = | |
| 192 new Bindings.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemMana
ger, Workspace.workspace); | |
| 193 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa
nager, Workspace.workspace); | 191 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa
nager, Workspace.workspace); |
| 194 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole
MessageHelper(Workspace.workspace); | 192 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole
MessageHelper(Workspace.workspace); |
| 195 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa
nager, Workspace.workspace); | 193 Bindings.cssWorkspaceBinding = new Bindings.CSSWorkspaceBinding(SDK.targetMa
nager, Workspace.workspace); |
| 196 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD
K.targetManager, Workspace.workspace); | 194 Bindings.debuggerWorkspaceBinding = new Bindings.DebuggerWorkspaceBinding(SD
K.targetManager, Workspace.workspace); |
| 197 Bindings.breakpointManager = | 195 Bindings.breakpointManager = |
| 198 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana
ger, Bindings.debuggerWorkspaceBinding); | 196 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana
ger, Bindings.debuggerWorkspaceBinding); |
| 199 Extensions.extensionServer = new Extensions.ExtensionServer(); | 197 Extensions.extensionServer = new Extensions.ExtensionServer(); |
| 200 | 198 |
| 199 var fileSystemWorkspaceBinding = |
| 200 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemM
anager, Workspace.workspace); |
| 201 Persistence.persistence = | 201 Persistence.persistence = |
| 202 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana
ger, Workspace.fileSystemMapping); | 202 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana
ger, Workspace.fileSystemMapping); |
| 203 | 203 |
| 204 new Main.OverlayController(); | 204 new Main.OverlayController(); |
| 205 new Components.ExecutionContextSelector(SDK.targetManager, UI.context); | 205 new Components.ExecutionContextSelector(SDK.targetManager, UI.context); |
| 206 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor
kspaceBinding); | 206 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor
kspaceBinding); |
| 207 | 207 |
| 208 var autoselectPanel = Common.UIString('auto'); | 208 var autoselectPanel = Common.UIString('auto'); |
| 209 var openAnchorLocationSetting = Common.settings.createSetting('openLinkHandl
er', autoselectPanel); | 209 var openAnchorLocationSetting = Common.settings.createSetting('openLinkHandl
er', autoselectPanel); |
| 210 Components.openAnchorLocationRegistry = new Components.HandlerRegistry(openA
nchorLocationSetting); | 210 Components.openAnchorLocationRegistry = new Components.HandlerRegistry(openA
nchorLocationSetting); |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1054 * @override | 1054 * @override |
| 1055 * @return {?Element} | 1055 * @return {?Element} |
| 1056 */ | 1056 */ |
| 1057 settingElement() { | 1057 settingElement() { |
| 1058 return UI.SettingsUI.createSettingCheckbox( | 1058 return UI.SettingsUI.createSettingCheckbox( |
| 1059 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 1059 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 1060 } | 1060 } |
| 1061 }; | 1061 }; |
| 1062 | 1062 |
| 1063 new Main.Main(); | 1063 new Main.Main(); |
| OLD | NEW |