| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 * @param {!Workspace.UISourceCode} uiSourceCode | 88 * @param {!Workspace.UISourceCode} uiSourceCode |
| 89 * @param {string} newContent | 89 * @param {string} newContent |
| 90 * @param {function(?string)} callback | 90 * @param {function(?string)} callback |
| 91 */ | 91 */ |
| 92 setFileContent(uiSourceCode, newContent, callback) { | 92 setFileContent(uiSourceCode, newContent, callback) { |
| 93 callback(null); | 93 callback(null); |
| 94 } | 94 } |
| 95 | 95 |
| 96 /** | 96 /** |
| 97 * @override | 97 * @override |
| 98 * @param {!Workspace.UISourceCode} uiSourceCode |
| 99 * @return {string} |
| 100 */ |
| 101 fullDisplayName(uiSourceCode) { |
| 102 var parentPath = uiSourceCode.parentURL().replace(/^(?:https?|file)\:\/\//,
''); |
| 103 try { |
| 104 parentPath = decodeURI(parentPath); |
| 105 } catch (e) { |
| 106 } |
| 107 return parentPath + '/' + uiSourceCode.displayName(true); |
| 108 } |
| 109 |
| 110 /** |
| 111 * @override |
| 98 * @return {boolean} | 112 * @return {boolean} |
| 99 */ | 113 */ |
| 100 canRename() { | 114 canRename() { |
| 101 return false; | 115 return false; |
| 102 } | 116 } |
| 103 | 117 |
| 104 /** | 118 /** |
| 105 * @override | 119 * @override |
| 106 * @param {!Workspace.UISourceCode} uiSourceCode | 120 * @param {!Workspace.UISourceCode} uiSourceCode |
| 107 * @param {string} newName | 121 * @param {string} newName |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 this.workspace().addProject(this); | 313 this.workspace().addProject(this); |
| 300 } | 314 } |
| 301 | 315 |
| 302 dispose() { | 316 dispose() { |
| 303 this._contentProviders = {}; | 317 this._contentProviders = {}; |
| 304 this.removeProject(); | 318 this.removeProject(); |
| 305 } | 319 } |
| 306 }; | 320 }; |
| 307 | 321 |
| 308 Bindings.ContentProviderBasedProject._metadata = Symbol('ContentProviderBasedPro
ject.Metadata'); | 322 Bindings.ContentProviderBasedProject._metadata = Symbol('ContentProviderBasedPro
ject.Metadata'); |
| OLD | NEW |