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>
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);
+ }
}