Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 213384
Collapse All | Expand All

(-)src/org/eclipse/tptp/monitoring/logui/internal/wizards/LogSetManager.java (-4 / +14 lines)
Lines 365-381 Link Here
365
365
366
			}
366
			}
367
			String parentId = elem.getAttribute("parentId");
367
			String parentId = elem.getAttribute("parentId");
368
			if (parentId == null || parentId.length() == 0) {
369
				parentParserSets.add(parserSet);
370
				parentId = null;
371
			}
372
			parserSet.setParentId(parentId);
373
			parserSets.put(parserSet.getId(), parserSet);
374
		}
375
		
376
		// Add the children of the parent parser sets
377
		Iterator i = parserSets.keySet().iterator();
378
		while(i.hasNext()) {
379
			String parserSetId = (String)i.next();
380
			LogParserSet parserSet = (LogParserSet)parserSets.get(parserSetId);
381
			String parentId = parserSet.getParentId();
368
			if (parentId != null && parentId.length() > 0) {
382
			if (parentId != null && parentId.length() > 0) {
369
				LogParserSet parentSet = (LogParserSet) parserSets
383
				LogParserSet parentSet = (LogParserSet) parserSets
370
						.get(parentId);
384
						.get(parentId);
371
				if (parentSet != null) {
385
				if (parentSet != null) {
372
					parentSet.getChildren().add(parserSet);
386
					parentSet.getChildren().add(parserSet);
373
				}
387
				}
374
			}else{
375
				parentParserSets.add(parserSet);
376
			}
388
			}
377
			parserSet.setParentId(parentId);
378
			parserSets.put(parserSet.getId(), parserSet);
379
		}
389
		}
380
390
381
	}
391
	}

Return to bug 213384