checkBox.setSelection(filterSettings.containsCategory(category));
checkBox.setSelection(origFilterSettings.containsCategory(category));
	private void buildBugCategoryList(Composite categoryGroup, final IProject project) {		List bugCategoryList = new LinkedList(I18N.instance().getBugCategories());		List checkBoxList = new LinkedList();		for (Iterator i = bugCategoryList.iterator(); i.hasNext(); ) {			String category = (String) i.next();			Button checkBox = new Button(categoryGroup, SWT.CHECK);			checkBox.setText(I18N.instance().getBugCategoryDescription(category));			checkBox.setSelection(filterSettings.containsCategory(category));						GridData layoutData = new GridData();			layoutData.horizontalIndent = 15;			checkBox.setLayoutData(layoutData);						// Every time a checkbox is clicked, rebuild the detector factory table			// to show only relevant entries						checkBox.addListener(SWT.Selection, 				new Listener(){					public void handleEvent(Event e){						syncProjectFilterWithTable(filterSettings);						populateAvailableRulesTable(project, getSelectedCategories());					}								} 			);						checkBoxList.add(checkBox);		}				this.chkEnableBugCategoryList = (Button[]) checkBoxList.toArray(new Button[checkBoxList.size()]);		this.bugCategoryList = (String[]) bugCategoryList.toArray(new String[bugCategoryList.size()]);	}