tmf.ui: Add (Un)check(In)active buttons to TimeGraphFilterDialog
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / widgets / timegraph / TimeGraphCombo.java
index a54372d4a52147d1884c69aa5cadc98f7f7564e6..46345a2c9661ef79a9bc5d6832db08a04f98ea30 100644 (file)
@@ -10,6 +10,7 @@
  *   Patrick Tasse - Initial API and implementation
  *   François Rajotte - Filter implementation
  *   Geneviève Bastien - Add event links between entries
+ *   Christian Mansky - Add check active / uncheck inactive buttons
  *******************************************************************************/
 
 package org.eclipse.tracecompass.tmf.ui.widgets.timegraph;
@@ -63,6 +64,7 @@ import org.eclipse.swt.widgets.TreeItem;
 import org.eclipse.tracecompass.internal.tmf.ui.Activator;
 import org.eclipse.tracecompass.internal.tmf.ui.ITmfImageConstants;
 import org.eclipse.tracecompass.internal.tmf.ui.Messages;
+import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.dialogs.ITimeGraphEntryActiveProvider;
 import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.dialogs.TimeGraphFilterDialog;
 import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.ILinkEvent;
 import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;
@@ -759,6 +761,28 @@ public class TimeGraphCombo extends Composite {
         fFilterDialog.setLabelProvider(labelProvider);
     }
 
+    /**
+     * Adds a "check active" button used by the filter dialog
+     *
+     * @param activeProvider
+     *            Additional button info specific to a certain view.
+     * @since 1.0
+     */
+    public void addTimeGraphFilterCheckActiveButton(ITimeGraphEntryActiveProvider activeProvider) {
+        fFilterDialog.addTimeGraphFilterCheckActiveButton(activeProvider);
+    }
+
+    /**
+     * Adds an "uncheck inactive" button used by the filter dialog
+     *
+     * @param inactiveProvider
+     *            Additional button info specific to a certain view.
+     * @since 1.0
+     */
+    public void addTimeGraphFilterUncheckInactiveButton(ITimeGraphEntryActiveProvider inactiveProvider) {
+        fFilterDialog.addTimeGraphFilterUncheckInactiveButton(inactiveProvider);
+    }
+
     /**
      * Sets the tree columns for this time graph combo.
      *
This page took 0.02491 seconds and 5 git commands to generate.