lttng: Disallow adding contexts on events for v2.2 or later (419455)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui / src / org / eclipse / linuxtools / internal / lttng2 / ui / views / control / model / impl / TargetNodeComponent.java
index 964456b8c2a6cc2519b020e7e45f94a8281eb551..e6347bcccadbbe3cffbb3586aad51b6704bf9e5e 100644 (file)
@@ -265,6 +265,15 @@ public class TargetNodeComponent extends TraceControlComponent implements ICommu
         return getControlService().isVersionSupported("2.3.0"); //$NON-NLS-1$
     }
 
+    /**
+     * Returns if node supports adding contexts on event
+     * @return <code>true</code> if it supports adding contexts on events else <code>false</code>
+     *
+     */
+    public boolean isContextOnEventSupported() {
+        return !getControlService().isVersionSupported("2.2.0"); //$NON-NLS-1$
+    }
+
     // ------------------------------------------------------------------------
     // Operations
     // ------------------------------------------------------------------------
This page took 0.029917 seconds and 5 git commands to generate.