| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * @param {string} projectId | 100 * @param {string} projectId |
| 101 * @return {string} | 101 * @return {string} |
| 102 */ | 102 */ |
| 103 static fileSystemPath(projectId) { | 103 static fileSystemPath(projectId) { |
| 104 return projectId; | 104 return projectId; |
| 105 } | 105 } |
| 106 | 106 |
| 107 /** | 107 /** |
| 108 * @param {!Workspace.UISourceCode} uiSourceCode |
| 109 * @return {boolean} |
| 110 */ |
| 111 static isFileSystemUISourceCode(uiSourceCode) { |
| 112 return uiSourceCode.project().type() === Workspace.projectTypes.FileSystem; |
| 113 } |
| 114 |
| 115 /** |
| 116 * @param {!Workspace.Project} project |
| 117 * @return {boolean} |
| 118 */ |
| 119 static isFileSystemProject(project) { |
| 120 return project.type() === Workspace.projectTypes.FileSystem; |
| 121 } |
| 122 |
| 123 /** |
| 124 * @param {!Workspace.Workspace} workspace |
| 125 * @return {!Array<!Workspace.UISourceCode>} |
| 126 */ |
| 127 static uiSourceCodes(workspace) { |
| 128 return workspace.uiSourceCodesForProjectType(Workspace.projectTypes.FileSyst
em); |
| 129 } |
| 130 |
| 131 /** |
| 108 * @return {!Workspace.IsolatedFileSystemManager} | 132 * @return {!Workspace.IsolatedFileSystemManager} |
| 109 */ | 133 */ |
| 110 fileSystemManager() { | 134 fileSystemManager() { |
| 111 return this._isolatedFileSystemManager; | 135 return this._isolatedFileSystemManager; |
| 112 } | 136 } |
| 113 | 137 |
| 114 /** | 138 /** |
| 115 * @param {!Array<!Workspace.IsolatedFileSystem>} fileSystems | 139 * @param {!Array<!Workspace.IsolatedFileSystem>} fileSystems |
| 116 */ | 140 */ |
| 117 _onFileSystemsLoaded(fileSystems) { | 141 _onFileSystemsLoaded(fileSystems) { |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 uiSourceCode[Persistence.FileSystemWorkspaceBinding._metadata] = null; | 563 uiSourceCode[Persistence.FileSystemWorkspaceBinding._metadata] = null; |
| 540 uiSourceCode.checkContentUpdated(); | 564 uiSourceCode.checkContentUpdated(); |
| 541 } | 565 } |
| 542 | 566 |
| 543 dispose() { | 567 dispose() { |
| 544 this.removeProject(); | 568 this.removeProject(); |
| 545 } | 569 } |
| 546 }; | 570 }; |
| 547 | 571 |
| 548 Persistence.FileSystemWorkspaceBinding._metadata = Symbol('FileSystemWorkspaceBi
nding.Metadata'); | 572 Persistence.FileSystemWorkspaceBinding._metadata = Symbol('FileSystemWorkspaceBi
nding.Metadata'); |
| OLD | NEW |