TableItem[] itemList = availableFactoriesTableViewer.getTable().getItems(); for (int i = 0; i < itemList.length; i++) { TableItem item = itemList[i]; DetectorFactory factory = (DetectorFactory) item.getData(); item.setChecked(factory.isDefaultEnabled()); }
	private void restoreDefaultSettings() {		// By default, don't run FindBugs automatically		chkEnableFindBugs.setSelection(false);				// Use the default minimum priority (which is medium)		minPriorityCombo.setText(ProjectFilterSettings.DEFAULT_PRIORITY);				// By default, all bug categories are enabled		for (int i = 0; i < chkEnableBugCategoryList.length; ++i) {			chkEnableBugCategoryList[i].setSelection(true);		}				// Enable only those detectors that are enabled by default		// TODO: implement this	}