// Target import directory ('Traces' folder)
private IFolder fTargetFolder;
+ private static final String SEPARATOR = ":"; //$NON-NLS-1$
// ------------------------------------------------------------------------
// Constructors
// Perform trace validation
String traceTypeName = fTraceTypes.getText();
- String tokens[] = traceTypeName.split(":", 2); //$NON-NLS-1$
+ String tokens[] = traceTypeName.split(SEPARATOR, 2);
if (tokens.length >= 2) {
String id = TmfTraceType.getInstance().getTraceTypeId(tokens[0], tokens[1]);
if (!TmfTraceType.getInstance().validateTrace(id, getSelectedResources())) {
boolean traceTypeOK = false;
if (traceType.startsWith(TmfTraceType.CUSTOM_TXT_CATEGORY)) {
for (CustomTxtTraceDefinition def : CustomTxtTraceDefinition.loadAll()) {
- if (traceType.equals(TmfTraceType.CUSTOM_TXT_CATEGORY + " : " + def.definitionName)) { //$NON-NLS-1$
+ if (traceType.equals(TmfTraceType.CUSTOM_TXT_CATEGORY + SEPARATOR + def.definitionName)) {
traceTypeOK = true;
traceBundle = Activator.getDefault().getBundle().getSymbolicName();
- traceTypeId = CustomTxtTrace.class.getCanonicalName() + ":" + def.definitionName; //$NON-NLS-1$
+ traceTypeId = CustomTxtTrace.class.getCanonicalName() + SEPARATOR + def.definitionName;
traceIcon = DEFAULT_TRACE_ICON_PATH;
break;
}
}
} else if (traceType.startsWith(TmfTraceType.CUSTOM_XML_CATEGORY)) {
for (CustomXmlTraceDefinition def : CustomXmlTraceDefinition.loadAll()) {
- if (traceType.equals(TmfTraceType.CUSTOM_XML_CATEGORY + " : " + def.definitionName)) { //$NON-NLS-1$
+ if (traceType.equals(TmfTraceType.CUSTOM_XML_CATEGORY + SEPARATOR + def.definitionName)) {
traceTypeOK = true;
traceBundle = Activator.getDefault().getBundle().getSymbolicName();
- traceTypeId = CustomXmlTrace.class.getCanonicalName() + ":" + def.definitionName; //$NON-NLS-1$
+ traceTypeId = CustomXmlTrace.class.getCanonicalName() + SEPARATOR + def.definitionName;
traceIcon = DEFAULT_TRACE_ICON_PATH;
break;
}
} else {
if (!traceType.equals("")) { //$NON-NLS-1$
// Trace type was selected
- String temp[] = traceType.split(":", 2); //$NON-NLS-1$
+ String temp[] = traceType.split(SEPARATOR, 2);
if (temp.length < 2) {
Activator.getDefault().logError("Error with trace type " + traceType); //$NON-NLS-1$
return false;