Added some more JUnit tests
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / control / model / impl / TraceEventComponent.java
index 6e7660102413f997f4d379e98cfa0d1b1660f8a0..7fed4e75b0a7ad6089e0ca588e3bf0992d9a28f5 100644 (file)
@@ -24,7 +24,7 @@ import org.eclipse.ui.views.properties.IPropertySource;
 
 
 /**
- * <b><u>TraceChannelComponent</u></b>
+ * <b><u>TraceEventComponent</u></b>
  * <p>
  * Implementation of the trace channel component.
  * </p>
@@ -48,7 +48,7 @@ public class TraceEventComponent extends TraceControlComponent {
     /**
      * The event information.
      */
-    private IEventInfo fEventInfo = null;
+    protected IEventInfo fEventInfo = null;
     /**
      * The image to be displayed when in disabled state.
      */
@@ -175,6 +175,27 @@ public class TraceEventComponent extends TraceControlComponent {
         return null;
     } 
     
+    /**
+     * @return session name from parent
+     */
+    public String getSessionName() {
+       return ((TraceChannelComponent)getParent()).getSessionName(); 
+    }
+
+    /**
+     * @return channel name from parent
+     */
+    public String getChannelName() {
+        return getParent().getName(); 
+    }
+
+    /**
+     * @return if domain is kernel or UST
+     */
+    public boolean isKernel() {
+        return ((TraceChannelComponent)getParent()).isKernel();
+    }
+
     // ------------------------------------------------------------------------
     // Operations
     // ------------------------------------------------------------------------
This page took 0.024433 seconds and 5 git commands to generate.