| author | kenwalker | 2012-02-07 11:39:51 (EST) |
|---|---|---|
| committer | John Arthorne | 2012-02-07 13:32:53 (EST) |
| commit | 716f16f08749bebeff6d2c6d58374504cc0f48f9 (patch) (side-by-side diff) | |
| tree | 28203e529fa8f1932badf295300e0ccc8a72011b | |
| parent | 1bc7ee2e887f761f85f6ec6808e942d33403a37d (diff) | |
| download | org.eclipse.orion.client-716f16f08749bebeff6d2c6d58374504cc0f48f9.zip org.eclipse.orion.client-716f16f08749bebeff6d2c6d58374504cc0f48f9.tar.gz org.eclipse.orion.client-716f16f08749bebeff6d2c6d58374504cc0f48f9.tar.bz2 | |
Bug 365002 - Navigator Copy/Paste displays incorrect error message
| -rw-r--r-- | bundles/org.eclipse.orion.client.core/web/orion/fileCommands.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/fileCommands.js b/bundles/org.eclipse.orion.client.core/web/orion/fileCommands.js index 1ba5ac5..88b2f63 100644 --- a/bundles/org.eclipse.orion.client.core/web/orion/fileCommands.js +++ b/bundles/org.eclipse.orion.client.core/web/orion/fileCommands.js @@ -666,6 +666,11 @@ define(["require", "dojo", "orion/util", "orion/commands", "orion/extensionComma id: "eclipse.pasteSelections", callback: function() { if (bufferedSelection.length > 0) { + // Do not allow pasting into the Root of the Workspace + if (mUtil.isAtRoot(this.treeRoot.Location)) { + errorHandler("Cannot paste into the Workspace root"); + return; + } for (var i=0; i<bufferedSelection.length; i++) { var location = bufferedSelection[i].Location; var name = null; |

