Remove all existing @since annotations
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / project / model / TraceTypeHelper.java
index 3ba07e4b46c47d08b7cce75db238f188f1eb38b0..10960155607254ba8bc5634bcb30b99b2398267b 100644 (file)
@@ -26,10 +26,11 @@ import org.eclipse.tracecompass.tmf.core.trace.TraceValidationStatus;
  * and a trace
  *
  * @author Matthew Khouzam
- * @since 3.0
  */
 public class TraceTypeHelper {
 
+    private static final String SEP = " : "; //$NON-NLS-1$
+
     private final String fName;
     private final String fCategoryName;
     private final String fTraceTypeId;
@@ -83,6 +84,18 @@ public class TraceTypeHelper {
         return fCategoryName;
     }
 
+    /**
+     * Get the trace type label "category : name".
+     *
+     * @return the trace type label
+     */
+    public String getLabel() {
+        if (fCategoryName.isEmpty()) {
+            return fName;
+        }
+        return fCategoryName + SEP + fName;
+    }
+
     /**
      * Get the trace type id
      *
@@ -109,7 +122,6 @@ public class TraceTypeHelper {
      * @param path
      *            the trace to validate
      * @return the confidence level (0 is lowest) or -1 if validation fails
-     * @since 3.0
      */
     public int validateWithConfidence(String path) {
         int result = -1;
@@ -126,7 +138,6 @@ public class TraceTypeHelper {
     /**
      * Get an object of the trace type
      * @return an object of the trace type
-     * @since 2.1
      */
     public ITmfTrace getTrace() {
         return fTrace;
@@ -145,7 +156,6 @@ public class TraceTypeHelper {
      * Get the class associated with this trace type
      *
      * @return The trace class
-     * @since 3.0
      */
     public Class<? extends ITmfTrace> getTraceClass() {
         return fTrace.getClass();
This page took 0.025626 seconds and 5 git commands to generate.