| 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('Debugger')); | 181 Components.shortcutsScreen.section(Common.UIString('Debugger')); |
| 182 Components.shortcutsScreen.section(Common.UIString('Console')); | 182 Components.shortcutsScreen.section(Common.UIString('Console')); |
| 183 | 183 |
| 184 Workspace.fileManager = new Workspace.FileManager(); | 184 Workspace.fileManager = new Workspace.FileManager(); |
| 185 Workspace.workspace = new Workspace.Workspace(); | 185 Workspace.workspace = new Workspace.Workspace(); |
| 186 Common.formatterWorkerPool = new Common.FormatterWorkerPool(); | 186 Common.formatterWorkerPool = new Common.FormatterWorkerPool(); |
| 187 Workspace.fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isol
atedFileSystemManager); | 187 Workspace.fileSystemMapping = new Workspace.FileSystemMapping(Workspace.isol
atedFileSystemManager); |
| 188 | 188 |
| 189 var fileSystemWorkspaceBinding = | 189 var fileSystemWorkspaceBinding = |
| 190 new Bindings.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemMana
ger, Workspace.workspace); | 190 new Bindings.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemMana
ger, Workspace.workspace); |
| 191 Bindings.networkMapping = new Bindings.NetworkMapping(Workspace.workspace); | |
| 192 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa
nager, Workspace.workspace); | 191 Main.networkProjectManager = new Bindings.NetworkProjectManager(SDK.targetMa
nager, Workspace.workspace); |
| 193 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole
MessageHelper(Workspace.workspace); | 192 Bindings.presentationConsoleMessageHelper = new Bindings.PresentationConsole
MessageHelper(Workspace.workspace); |
| 194 Bindings.cssWorkspaceBinding = | 193 Bindings.cssWorkspaceBinding = |
| 195 new Bindings.CSSWorkspaceBinding(SDK.targetManager, Workspace.workspace,
Bindings.networkMapping); | 194 new Bindings.CSSWorkspaceBinding(SDK.targetManager, Workspace.workspace)
; |
| 196 Bindings.debuggerWorkspaceBinding = | 195 Bindings.debuggerWorkspaceBinding = |
| 197 new Bindings.DebuggerWorkspaceBinding(SDK.targetManager, Workspace.works
pace, Bindings.networkMapping); | 196 new Bindings.DebuggerWorkspaceBinding(SDK.targetManager, Workspace.works
pace); |
| 198 Bindings.breakpointManager = | 197 Bindings.breakpointManager = |
| 199 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana
ger, Bindings.debuggerWorkspaceBinding); | 198 new Bindings.BreakpointManager(null, Workspace.workspace, SDK.targetMana
ger, Bindings.debuggerWorkspaceBinding); |
| 200 Extensions.extensionServer = new Extensions.ExtensionServer(); | 199 Extensions.extensionServer = new Extensions.ExtensionServer(); |
| 201 | 200 |
| 202 Persistence.persistence = | 201 Persistence.persistence = |
| 203 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana
ger, Workspace.fileSystemMapping); | 202 new Persistence.Persistence(Workspace.workspace, Bindings.breakpointMana
ger, Workspace.fileSystemMapping); |
| 204 | 203 |
| 205 new Main.OverlayController(); | 204 new Main.OverlayController(); |
| 206 new Components.ExecutionContextSelector(SDK.targetManager, UI.context); | 205 new Components.ExecutionContextSelector(SDK.targetManager, UI.context); |
| 207 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor
kspaceBinding); | 206 Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWor
kspaceBinding); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 364 |
| 366 if (anchor.preventFollow) | 365 if (anchor.preventFollow) |
| 367 return; | 366 return; |
| 368 | 367 |
| 369 function followLink() { | 368 function followLink() { |
| 370 if (UI.isBeingEdited(target)) | 369 if (UI.isBeingEdited(target)) |
| 371 return; | 370 return; |
| 372 if (Components.openAnchorLocationRegistry.dispatch({url: anchor.href, line
Number: anchor.lineNumber})) | 371 if (Components.openAnchorLocationRegistry.dispatch({url: anchor.href, line
Number: anchor.lineNumber})) |
| 373 return; | 372 return; |
| 374 | 373 |
| 375 var uiSourceCode = Bindings.networkMapping.uiSourceCodeForURLForAnyTarget(
anchor.href); | 374 var uiSourceCode = Workspace.workspace.uiSourceCodeForURL(anchor.href); |
| 376 if (uiSourceCode) { | 375 if (uiSourceCode) { |
| 377 Common.Revealer.reveal(uiSourceCode.uiLocation(anchor.lineNumber || 0, a
nchor.columnNumber || 0)); | 376 Common.Revealer.reveal(uiSourceCode.uiLocation(anchor.lineNumber || 0, a
nchor.columnNumber || 0)); |
| 378 return; | 377 return; |
| 379 } | 378 } |
| 380 | 379 |
| 381 var resource = Bindings.resourceForURL(anchor.href); | 380 var resource = Bindings.resourceForURL(anchor.href); |
| 382 if (resource) { | 381 if (resource) { |
| 383 Common.Revealer.reveal(resource); | 382 Common.Revealer.reveal(resource); |
| 384 return; | 383 return; |
| 385 } | 384 } |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 * @override | 1054 * @override |
| 1056 * @return {?Element} | 1055 * @return {?Element} |
| 1057 */ | 1056 */ |
| 1058 settingElement() { | 1057 settingElement() { |
| 1059 return UI.SettingsUI.createSettingCheckbox( | 1058 return UI.SettingsUI.createSettingCheckbox( |
| 1060 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 1059 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 1061 } | 1060 } |
| 1062 }; | 1061 }; |
| 1063 | 1062 |
| 1064 new Main.Main(); | 1063 new Main.Main(); |
| OLD | NEW |