*/
public class TraceTypeHelper {
+ private static final String SEP = " : "; //$NON-NLS-1$
+
private final String fName;
private final String fCategoryName;
private final String fTraceTypeId;
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
*