mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 317016: renamed miss-spelled function
This commit is contained in:
parent
ce55d2dce6
commit
7b02c1b681
7 changed files with 18 additions and 6 deletions
|
@ -128,7 +128,7 @@ public class CheckerTestCase extends CodanTestCase {
|
|||
* @return
|
||||
*/
|
||||
protected IProblemPreference getPreference(String problemId, String paramId) {
|
||||
IProblem problem = CodanRuntime.getInstance().getChechersRegistry()
|
||||
IProblem problem = CodanRuntime.getInstance().getCheckersRegistry()
|
||||
.getWorkspaceProfile().findProblem(problemId);
|
||||
IProblemPreference pref = ((MapProblemPreference) problem
|
||||
.getPreference()).getChildDescriptor(paramId);
|
||||
|
|
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %Bundle-Name
|
||||
Bundle-SymbolicName: org.eclipse.cdt.codan.core;singleton:=true
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-Version: 1.1.0.qualifier
|
||||
Bundle-Activator: org.eclipse.cdt.codan.core.CodanCorePlugin
|
||||
Bundle-Vendor: %Bundle-Vendor
|
||||
Require-Bundle: org.eclipse.core.runtime,
|
||||
|
|
|
@ -85,12 +85,24 @@ public class CodanRuntime {
|
|||
/**
|
||||
* Get checkers registry.
|
||||
*
|
||||
* @deprecated (misspelled) use getCheckersRegistry
|
||||
* @return
|
||||
*/
|
||||
@Deprecated
|
||||
public ICheckersRegistry getChechersRegistry() {
|
||||
return checkers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get checkers registry.
|
||||
*
|
||||
* @return
|
||||
* @since 1.1
|
||||
*/
|
||||
public ICheckersRegistry getCheckersRegistry() {
|
||||
return checkers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get problem location factory.
|
||||
*
|
||||
|
|
|
@ -63,7 +63,7 @@ public abstract class AbstractCheckerWithProblemPreferences extends
|
|||
* @return true if checker should report problems, fails otherwise.
|
||||
*/
|
||||
public boolean shouldProduceProblems(IResource res) {
|
||||
Collection<IProblem> refProblems = getRuntime().getChechersRegistry()
|
||||
Collection<IProblem> refProblems = getRuntime().getCheckersRegistry()
|
||||
.getRefProblems(this);
|
||||
for (Iterator<IProblem> iterator = refProblems.iterator(); iterator
|
||||
.hasNext();) {
|
||||
|
|
|
@ -143,7 +143,7 @@ public class CodanMarkerProblemReporter implements IProblemReporterPersistent {
|
|||
GENERIC_CODE_ANALYSIS_MARKER_TYPE, true,
|
||||
IResource.DEPTH_INFINITE);
|
||||
ICheckersRegistry reg = CodanRuntime.getInstance()
|
||||
.getChechersRegistry();
|
||||
.getCheckersRegistry();
|
||||
for (int i = 0; i < markers.length; i++) {
|
||||
IMarker m = markers[i];
|
||||
String id = m.getAttribute(IMarker.PROBLEM, ""); //$NON-NLS-1$
|
||||
|
|
|
@ -191,7 +191,7 @@ public class CodanPreferencePage extends FieldEditorOverlayPage implements
|
|||
* @return
|
||||
*/
|
||||
protected ICheckersRegistry getRegistry() {
|
||||
return CodanRuntime.getInstance().getChechersRegistry();
|
||||
return CodanRuntime.getInstance().getCheckersRegistry();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -100,7 +100,7 @@ public abstract class AbstractCodanProblemDetailsProvider {
|
|||
String id = getProblemId();
|
||||
if (id == null)
|
||||
return ""; //$NON-NLS-1$
|
||||
IProblem problem = CodanRuntime.getInstance().getChechersRegistry().getDefaultProfile().findProblem(id);
|
||||
IProblem problem = CodanRuntime.getInstance().getCheckersRegistry().getDefaultProfile().findProblem(id);
|
||||
return escapeForLink(problem.getDescription());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue