tmf : Introduce the modules for the XML pattern analysis
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.analysis.xml.core / src / org / eclipse / tracecompass / tmf / analysis / xml / core / module / XmlUtils.java
index 175e9235f6addf3de66af91e192107696feffcdd..601266e7ca3659a5c53bbb96a0b6e324ec8183aa 100644 (file)
@@ -262,6 +262,12 @@ public class XmlUtils {
                 for (int i = 0; i < stateproviderNodes.getLength(); i++) {
                     ids.add(nullToEmptyString(((Element) stateproviderNodes.item(i)).getAttribute(TmfXmlStrings.ID)));
                 }
+
+                /* get patterns modules */
+                NodeList patternNodes = doc.getElementsByTagName(TmfXmlStrings.PATTERN);
+                for (int i = 0; i < patternNodes.getLength(); i++) {
+                    ids.add(nullToEmptyString(((Element) patternNodes.item(i)).getAttribute(TmfXmlStrings.ID)));
+                }
             } catch (ParserConfigurationException | SAXException | IOException e) {
                 Activator.logError("Failed to get analyses IDs from " + fileName); //$NON-NLS-1$
             }
This page took 0.026331 seconds and 5 git commands to generate.