summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2011-04-26 15:55:44 (EDT)
committerRyan D. Brooks2011-04-26 15:55:44 (EDT)
commit323410751de02f36cc25bcd3eff3c3604df61dd4 (patch)
tree3bf2c1af52832d2a026cfd47fe1fb43ec7fccd5c
parent38b1ff989eadb3229fd4c0421102e7a60a4c1554 (diff)
downloadorg.eclipse.osee-323410751de02f36cc25bcd3eff3c3604df61dd4.zip
org.eclipse.osee-323410751de02f36cc25bcd3eff3c3604df61dd4.tar.gz
org.eclipse.osee-323410751de02f36cc25bcd3eff3c3604df61dd4.tar.bz2
bug[bgz_346890]: ArtifactExplorer: Paste special enabled on non-permissioned artifacts
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java
index b852d01..b4a19b8 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/ArtifactExplorer.java
@@ -1105,7 +1105,9 @@ public class ArtifactExplorer extends ViewPart implements IArtifactExplorerEvent
goIntoMenuItem.setEnabled(permiss.isReadPermission());
copyMenuItem.setEnabled(permiss.isReadPermission());
- pasteMenuItem.setEnabled(permiss.isWritePermission());
+ boolean clipboardEmpty = artifactClipboard.isEmpty();
+ pasteMenuItem.setEnabled(permiss.isWritePermission() && !clipboardEmpty);
+ pasteSpecialMenuItem.setEnabled(permiss.isWritePermission() && !clipboardEmpty);
renameArtifactMenuItem.setEnabled(permiss.isWritePermission());
} catch (Exception ex) {