mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 396749 - Checker is not enabled if only one problem is selected
This commit is contained in:
parent
53012d05af
commit
78f863bc01
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2009, 2011 Alena Laskavaia
|
||||
* Copyright (c) 2009, 2013 Alena Laskavaia
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -417,9 +417,7 @@ public class CheckersRegistry implements Iterable<IChecker>, ICheckersRegistry {
|
|||
IProblem problem = resourceProfile.findProblem(p.getId());
|
||||
if (problem == null)
|
||||
throw new IllegalArgumentException(p.getId() + " is not registered"); //$NON-NLS-1$
|
||||
if (!problem.isEnabled())
|
||||
return false;
|
||||
if (checker instanceof AbstractCheckerWithProblemPreferences) {
|
||||
if (problem.isEnabled() && checker instanceof AbstractCheckerWithProblemPreferences) {
|
||||
LaunchModeProblemPreference pref =
|
||||
((AbstractCheckerWithProblemPreferences) checker).getLaunchModePreference(problem);
|
||||
if (pref.isRunningInMode(mode)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue