Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/lttng
diff options
context:
space:
mode:
authorPatrick Tasse2013-02-28 21:49:23 +0000
committerPatrick Tasse2013-03-01 18:16:00 +0000
commit0ed615da4c9c371507d869d2576ca3fca7f49fd1 (patch)
treea1769bf975f5f25be74f67a881940da877c32bb0 /lttng
parent74a9cfa026f565021a846118cfe90d7f31f2dba0 (diff)
downloadorg.eclipse.linuxtools-0ed615da4c9c371507d869d2576ca3fca7f49fd1.tar.gz
org.eclipse.linuxtools-0ed615da4c9c371507d869d2576ca3fca7f49fd1.tar.xz
org.eclipse.linuxtools-0ed615da4c9c371507d869d2576ca3fca7f49fd1.zip
Fix ResourceException in drag and drop to experiment from same project
Change-Id: Idf0945dd0c965b99360a4f4df7d8f3a31b371fcc Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com> Reviewed-on: https://git.eclipse.org/r/10752 Tested-by: Hudson CI Reviewed-by: Bernd Hufmann <bhufmann@gmail.com> IP-Clean: Bernd Hufmann <bhufmann@gmail.com> Tested-by: Bernd Hufmann <bhufmann@gmail.com>
Diffstat (limited to 'lttng')
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/DropAdapterAssistant.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/DropAdapterAssistant.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/DropAdapterAssistant.java
index 0a70cc02cc..498d39615e 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/DropAdapterAssistant.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/DropAdapterAssistant.java
@@ -209,8 +209,10 @@ public class DropAdapterAssistant extends CommonDropAdapterAssistant {
IResource targetResource = drop(sourceResource, targetExperiment, operation);
if (targetResource != null) {
- IFolder destinationSupplementaryFolder = targetExperiment.getTraceSupplementaryFolder(targetResource.getName());
- sourceTrace.copySupplementaryFolder(destinationSupplementaryFolder);
+ if (! sourceTrace.getProject().equals(targetExperiment.getProject())) {
+ IFolder destinationSupplementaryFolder = targetExperiment.getTraceSupplementaryFolder(targetResource.getName());
+ sourceTrace.copySupplementaryFolder(destinationSupplementaryFolder);
+ }
return true;
}
return false;

Back to the top