setShellStyle(getShellStyle() | SWT.RESIZE);
}
private void initMaps() {
for (BugPattern pattern : allowedPatterns) {
BugCode bugCode = DetectorFactoryCollection.instance().getBugCode(pattern.getAbbrev());
getPatterns(bugCode).add(pattern);
}
// Filter out patterns if their types in the list
// If at least one child is there, discard it from checked elements
// list,
// as it is already disabled by disabling parent
Iterator<BugPattern> patterns = preSelectedPatterns.iterator();
while (patterns.hasNext()) {
BugPattern pattern = patterns.next();
BugCode bugCode = DetectorFactoryCollection.instance().getBugCode(pattern.getAbbrev());
if (preSelectedTypes.contains(bugCode)) {
patterns.remove();
}
}