/*******************************************************************************
- * Copyright (c) 2010 Ericsson
+ * Copyright (c) 2010, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
protected String[] getFieldsList(ITmfFilterTreeNode node) {
ArrayList<String> fieldsList = new ArrayList<String>();
- while (node != null) {
- if (node instanceof TmfFilterEventTypeNode) {
- TmfFilterEventTypeNode eventTypeNode = (TmfFilterEventTypeNode) node;
+ ITmfFilterTreeNode curNode = node;
+ while (curNode != null) {
+ if (curNode instanceof TmfFilterEventTypeNode) {
+ TmfFilterEventTypeNode eventTypeNode = (TmfFilterEventTypeNode) curNode;
for (IConfigurationElement ce : TmfTraceType.getTypeElements()) {
if (ce.getAttribute(TmfTraceType.EVENT_TYPE_ATTR).equals(eventTypeNode.getEventType())) {
try {
}
}
}
- node = node.getParent();
+ curNode = curNode.getParent();
}
fieldsList.add(Messages.FilterViewer_CommonCategory);