Add setPinned to TimeGraphCombo
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 27 Oct 2016 20:59:20 +0000 (16:59 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 11 Nov 2016 15:36:07 +0000 (10:36 -0500)
When pinned disable the filter dialog action and pass the state
to the TimeGraphViewer

Change-Id: Ic40fddfdae405de1927be3c315d3ebc6a0553c70
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphCombo.java

index 0c27d2515b296c2fc8907e5f5217a580e6fa2457..77d0eeb38d2955685b6e8bd4a488e379ada74b1a 100644 (file)
@@ -1508,4 +1508,19 @@ public class TimeGraphCombo extends Composite {
         layout.marginRight = Math.max(0, marginSize);
         composite.layout();
     }
+
+    /**
+     * Set the pin state.
+     *
+     * @param pinned
+     *            The pin state
+     * @since 2.2
+     */
+    public void setPinned(boolean pinned) {
+        boolean enabled = !pinned;
+
+        fShowFilterDialogAction.setEnabled(enabled);
+
+        fTimeGraphViewer.setPinned(pinned);
+    }
 }
This page took 0.027253 seconds and 5 git commands to generate.