diff options
author | Sergey Prigogin | 2010-04-07 05:57:48 +0000 |
---|---|---|
committer | Sergey Prigogin | 2010-04-07 05:57:48 +0000 |
commit | c9d58591b0f2ccb758d2d3603bf446fc9e8cfb7f (patch) | |
tree | 191d87c6ec1673c5ac8b6dd230d57630782f912c /core | |
parent | 1c01ace3173e6fcd66fea488fa2680732e637bd6 (diff) | |
download | org.eclipse.cdt-c9d58591b0f2ccb758d2d3603bf446fc9e8cfb7f.tar.gz org.eclipse.cdt-c9d58591b0f2ccb758d2d3603bf446fc9e8cfb7f.tar.xz org.eclipse.cdt-c9d58591b0f2ccb758d2d3603bf446fc9e8cfb7f.zip |
Cosmetics.
Diffstat (limited to 'core')
-rw-r--r-- | core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/OpenDeclarationsJob.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/OpenDeclarationsJob.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/OpenDeclarationsJob.java index 7f1b5670acb..d816931b99b 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/OpenDeclarationsJob.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/OpenDeclarationsJob.java @@ -257,13 +257,13 @@ class OpenDeclarationsJob extends Job implements ASTRunnable { IName[] declNames = findNames(fIndex, ast, kind, binding); if (declNames.length == 0) { if (binding instanceof ICPPSpecialization) { - // bug 207320, handle template instances + // Bug 207320, handle template instances. IBinding specialized= ((ICPPSpecialization) binding).getSpecializedBinding(); if (specialized != null && !(specialized instanceof IProblemBinding)) { declNames = findNames(fIndex, ast, NameKind.DEFINITION, specialized); } } else if (binding instanceof ICPPMethod) { - // bug 86829, handle implicit methods. + // Bug 86829, handle implicit methods. ICPPMethod method= (ICPPMethod) binding; if (method.isImplicit()) { try { @@ -272,7 +272,7 @@ class OpenDeclarationsJob extends Job implements ASTRunnable { declNames= findNames(fIndex, ast, NameKind.REFERENCE, clsBinding); } } catch (DOMException e) { - // don't log problem bindings. + // Don't log problem bindings. } } } @@ -308,7 +308,7 @@ class OpenDeclarationsJob extends Job implements ASTRunnable { i.remove(); } if (binding != b2 && binding instanceof ICPPSpecialization) { - // make sure binding specializes b2 so that for instance we do not navigate from + // Make sure binding specializes b2 so that for instance we do not navigate from // one partial specialization to another. IBinding spec= binding; while (spec instanceof ICPPSpecialization) { @@ -325,7 +325,7 @@ class OpenDeclarationsJob extends Job implements ASTRunnable { return declNames.toArray(new IASTName[declNames.size()]); } - // 2. Try definition in index + // 2. Try definition in index. return index.findNames(binding, IIndex.FIND_DEFINITIONS | IIndex.SEARCH_ACROSS_LANGUAGE_BOUNDARIES); } @@ -598,7 +598,7 @@ class OpenDeclarationsJob extends Job implements ASTRunnable { secondaryBindings= defaultRemoveSecondaryBindings(primaryBindings, sourceName); } - // Convert bindings to CElements + // Convert bindings to CElements. Collection<IBinding> bs= primaryBindings; for (int k = 0; k < 2; k++) { for (IBinding binding : bs) { @@ -641,7 +641,7 @@ class OpenDeclarationsJob extends Job implements ASTRunnable { iterator.remove(); } } catch (DOMException e) { - // ignore + // Ignore } } } @@ -687,7 +687,7 @@ class OpenDeclarationsJob extends Job implements ASTRunnable { } } if (funcArgCount != -1) { - // For c++ we can check the number of parameters + // For c++ we can check the number of parameters. if (binding instanceof ICPPFunction) { ICPPFunction f= (ICPPFunction) binding; try { @@ -709,7 +709,7 @@ class OpenDeclarationsJob extends Job implements ASTRunnable { } } } catch (DOMException e) { - // ignore problem bindings + // Ignore problem bindings. continue; } } |