/*******************************************************************************
- * Copyright (c) 2014 École Polytechnique de Montréal
+ * Copyright (c) 2014, 2016 École Polytechnique de Montréal and others.
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
+import java.util.regex.Pattern;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.tracecompass.internal.tmf.analysis.xml.ui.TmfXmlUiStrings;
return super.getTimeEventsIterator();
}
+ @Override
+ public boolean matches(@NonNull Pattern pattern) {
+ if (pattern.matcher(getName()).find()) {
+ return true;
+ }
+ if (pattern.matcher(fId).find()) {
+ return true;
+ }
+ return pattern.matcher(fParentId).find();
+ }
}