aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkenwalker2012-02-07 11:39:51 (EST)
committerJohn Arthorne2012-02-07 13:32:53 (EST)
commit0c3c06939c3c8b8b691d31de0286f2b847c5af76 (patch)
tree28203e529fa8f1932badf295300e0ccc8a72011b
parent3848e928227fb0d18935ca60f55eadf00ebb4445 (diff)
downloadorg.eclipse.orion.client-0c3c06939c3c8b8b691d31de0286f2b847c5af76.zip
org.eclipse.orion.client-0c3c06939c3c8b8b691d31de0286f2b847c5af76.tar.gz
org.eclipse.orion.client-0c3c06939c3c8b8b691d31de0286f2b847c5af76.tar.bz2
Bug 365002 - Navigator Copy/Paste displays incorrect error message
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/fileCommands.js5
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;