tmf : show environment variables of traces under Experiments
authorJean-Christian Kouamé <kadjo.gwandy.jean-christian.kouame@ericsson.com>
Wed, 10 Jul 2013 14:54:54 +0000 (10:54 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 17 Jul 2013 01:10:55 +0000 (21:10 -0400)
Fixes bug 407756

Change-Id: Ia3576e9ad95a397ce4725d1a72eec8f8310119d6
Signed-off-by: Jean-Christian Kouamé <kadjo.gwandy.jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14463
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/TmfTraceElement.java

index bb0c361a54747ca62d12c55d686ffa2e29c73bdf..0abd421b0034831f02542ba994abbbf5b143ea35 100644 (file)
@@ -421,11 +421,13 @@ public class TmfTraceElement extends TmfWithFolderElement implements IActionFilt
      *         respectively as keys and values
      */
     private Map<String, String> getTraceProperties() {
-        for (ITmfTrace trace : TmfTraceManager.getInstance().getOpenedTraces()) {
-            if (trace.getResource().equals(this.getResource())) {
-                if (trace instanceof ITmfTraceProperties) {
-                    ITmfTraceProperties traceProperties = (ITmfTraceProperties) trace;
-                    return traceProperties.getTraceProperties();
+        for (ITmfTrace openedTrace : TmfTraceManager.getInstance().getOpenedTraces()) {
+            for (ITmfTrace singleTrace : TmfTraceManager.getTraceSet(openedTrace)) {
+                if (this.getLocation().toString().endsWith(singleTrace.getPath())) {
+                    if (singleTrace instanceof ITmfTraceProperties) {
+                        ITmfTraceProperties traceProperties = (ITmfTraceProperties) singleTrace;
+                        return traceProperties.getTraceProperties();
+                    }
                 }
             }
         }
This page took 0.037421 seconds and 5 git commands to generate.