mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 13:05:22 +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
|
* @return
|
||||||
*/
|
*/
|
||||||
protected IProblemPreference getPreference(String problemId, String paramId) {
|
protected IProblemPreference getPreference(String problemId, String paramId) {
|
||||||
IProblem problem = CodanRuntime.getInstance().getChechersRegistry()
|
IProblem problem = CodanRuntime.getInstance().getCheckersRegistry()
|
||||||
.getWorkspaceProfile().findProblem(problemId);
|
.getWorkspaceProfile().findProblem(problemId);
|
||||||
IProblemPreference pref = ((MapProblemPreference) problem
|
IProblemPreference pref = ((MapProblemPreference) problem
|
||||||
.getPreference()).getChildDescriptor(paramId);
|
.getPreference()).getChildDescriptor(paramId);
|
||||||
|
|
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %Bundle-Name
|
Bundle-Name: %Bundle-Name
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.codan.core;singleton:=true
|
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-Activator: org.eclipse.cdt.codan.core.CodanCorePlugin
|
||||||
Bundle-Vendor: %Bundle-Vendor
|
Bundle-Vendor: %Bundle-Vendor
|
||||||
Require-Bundle: org.eclipse.core.runtime,
|
Require-Bundle: org.eclipse.core.runtime,
|
||||||
|
|
|
@ -85,12 +85,24 @@ public class CodanRuntime {
|
||||||
/**
|
/**
|
||||||
* Get checkers registry.
|
* Get checkers registry.
|
||||||
*
|
*
|
||||||
|
* @deprecated (misspelled) use getCheckersRegistry
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public ICheckersRegistry getChechersRegistry() {
|
public ICheckersRegistry getChechersRegistry() {
|
||||||
return checkers;
|
return checkers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get checkers registry.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
|
public ICheckersRegistry getCheckersRegistry() {
|
||||||
|
return checkers;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get problem location factory.
|
* Get problem location factory.
|
||||||
*
|
*
|
||||||
|
|
|
@ -63,7 +63,7 @@ public abstract class AbstractCheckerWithProblemPreferences extends
|
||||||
* @return true if checker should report problems, fails otherwise.
|
* @return true if checker should report problems, fails otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean shouldProduceProblems(IResource res) {
|
public boolean shouldProduceProblems(IResource res) {
|
||||||
Collection<IProblem> refProblems = getRuntime().getChechersRegistry()
|
Collection<IProblem> refProblems = getRuntime().getCheckersRegistry()
|
||||||
.getRefProblems(this);
|
.getRefProblems(this);
|
||||||
for (Iterator<IProblem> iterator = refProblems.iterator(); iterator
|
for (Iterator<IProblem> iterator = refProblems.iterator(); iterator
|
||||||
.hasNext();) {
|
.hasNext();) {
|
||||||
|
|
|
@ -143,7 +143,7 @@ public class CodanMarkerProblemReporter implements IProblemReporterPersistent {
|
||||||
GENERIC_CODE_ANALYSIS_MARKER_TYPE, true,
|
GENERIC_CODE_ANALYSIS_MARKER_TYPE, true,
|
||||||
IResource.DEPTH_INFINITE);
|
IResource.DEPTH_INFINITE);
|
||||||
ICheckersRegistry reg = CodanRuntime.getInstance()
|
ICheckersRegistry reg = CodanRuntime.getInstance()
|
||||||
.getChechersRegistry();
|
.getCheckersRegistry();
|
||||||
for (int i = 0; i < markers.length; i++) {
|
for (int i = 0; i < markers.length; i++) {
|
||||||
IMarker m = markers[i];
|
IMarker m = markers[i];
|
||||||
String id = m.getAttribute(IMarker.PROBLEM, ""); //$NON-NLS-1$
|
String id = m.getAttribute(IMarker.PROBLEM, ""); //$NON-NLS-1$
|
||||||
|
|
|
@ -191,7 +191,7 @@ public class CodanPreferencePage extends FieldEditorOverlayPage implements
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
protected ICheckersRegistry getRegistry() {
|
protected ICheckersRegistry getRegistry() {
|
||||||
return CodanRuntime.getInstance().getChechersRegistry();
|
return CodanRuntime.getInstance().getCheckersRegistry();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -100,7 +100,7 @@ public abstract class AbstractCodanProblemDetailsProvider {
|
||||||
String id = getProblemId();
|
String id = getProblemId();
|
||||||
if (id == null)
|
if (id == null)
|
||||||
return ""; //$NON-NLS-1$
|
return ""; //$NON-NLS-1$
|
||||||
IProblem problem = CodanRuntime.getInstance().getChechersRegistry().getDefaultProfile().findProblem(id);
|
IProblem problem = CodanRuntime.getInstance().getCheckersRegistry().getDefaultProfile().findProblem(id);
|
||||||
return escapeForLink(problem.getDescription());
|
return escapeForLink(problem.getDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue