mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Fixed confusing names.
This commit is contained in:
parent
bcb875257f
commit
a1c8b3f7d3
1 changed files with 24 additions and 24 deletions
|
@ -6,12 +6,12 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Markus Schorn - initial API and implementation
|
* Markus Schorn - initial API and implementation
|
||||||
* Bryan Wilkinson (QNX)
|
* Bryan Wilkinson (QNX)
|
||||||
* Andrew Ferguson (Symbian)
|
* Andrew Ferguson (Symbian)
|
||||||
* Anton Leherbauer (Wind River Systems)
|
* Anton Leherbauer (Wind River Systems)
|
||||||
* Sergey Prigogin (Google)
|
* Sergey Prigogin (Google)
|
||||||
* Jens Elmenthaler - http://bugs.eclipse.org/173458 (camel case completion)
|
* Jens Elmenthaler - http://bugs.eclipse.org/173458 (camel case completion)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.core.index;
|
package org.eclipse.cdt.internal.core.index;
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ public class CIndex implements IIndex {
|
||||||
}
|
}
|
||||||
|
|
||||||
public IIndexBinding[] findBindings(Pattern pattern, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException {
|
public IIndexBinding[] findBindings(Pattern pattern, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException {
|
||||||
return findBindings(new Pattern[]{pattern}, isFullyQualified, filter, monitor);
|
return findBindings(new Pattern[] { pattern }, isFullyQualified, filter, monitor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IIndexBinding[] findBindings(Pattern[] patterns, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException {
|
public IIndexBinding[] findBindings(Pattern[] patterns, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException {
|
||||||
|
@ -344,8 +344,8 @@ public class CIndex implements IIndex {
|
||||||
|
|
||||||
public synchronized void releaseReadLock() {
|
public synchronized void releaseReadLock() {
|
||||||
if (--fReadLock == 0) {
|
if (--fReadLock == 0) {
|
||||||
for (IIndexFragment fFragment : fFragments) {
|
for (IIndexFragment fragment : fFragments) {
|
||||||
fFragment.releaseReadLock();
|
fragment.releaseReadLock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -355,8 +355,8 @@ public class CIndex implements IIndex {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasWaitingReaders() {
|
public boolean hasWaitingReaders() {
|
||||||
for (IIndexFragment fFragment : fFragments) {
|
for (IIndexFragment fragment : fFragments) {
|
||||||
if (fFragment.hasWaitingReaders()) {
|
if (fragment.hasWaitingReaders()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -365,8 +365,8 @@ public class CIndex implements IIndex {
|
||||||
|
|
||||||
public long getLastWriteAccess() {
|
public long getLastWriteAccess() {
|
||||||
long result= 0;
|
long result= 0;
|
||||||
for (IIndexFragment fFragment : fFragments) {
|
for (IIndexFragment fragment : fFragments) {
|
||||||
result= Math.max(result, fFragment.getLastWriteAccess());
|
result= Math.max(result, fragment.getLastWriteAccess());
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -458,8 +458,8 @@ public class CIndex implements IIndex {
|
||||||
|
|
||||||
public IIndexFragmentBinding[] findEquivalentBindings(IBinding binding) throws CoreException {
|
public IIndexFragmentBinding[] findEquivalentBindings(IBinding binding) throws CoreException {
|
||||||
List<IIndexFragmentBinding> result = new ArrayList<IIndexFragmentBinding>();
|
List<IIndexFragmentBinding> result = new ArrayList<IIndexFragmentBinding>();
|
||||||
for (IIndexFragment fFragment : fFragments) {
|
for (IIndexFragment fragment : fFragments) {
|
||||||
IIndexFragmentBinding adapted = fFragment.adaptBinding(binding);
|
IIndexFragmentBinding adapted = fragment.adaptBinding(binding);
|
||||||
if (adapted != null) {
|
if (adapted != null) {
|
||||||
result.add(adapted);
|
result.add(adapted);
|
||||||
}
|
}
|
||||||
|
@ -629,23 +629,23 @@ public class CIndex implements IIndex {
|
||||||
|
|
||||||
public long getCacheHits() {
|
public long getCacheHits() {
|
||||||
long result= 0;
|
long result= 0;
|
||||||
for (IIndexFragment fFragment : fFragments) {
|
for (IIndexFragment fragment : fFragments) {
|
||||||
result+= fFragment.getCacheHits();
|
result+= fragment.getCacheHits();
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getCacheMisses() {
|
public long getCacheMisses() {
|
||||||
long result= 0;
|
long result= 0;
|
||||||
for (IIndexFragment fFragment : fFragments) {
|
for (IIndexFragment fragment : fFragments) {
|
||||||
result+= fFragment.getCacheMisses();
|
result+= fragment.getCacheMisses();
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void resetCacheCounters() {
|
public void resetCacheCounters() {
|
||||||
for (IIndexFragment fFragment : fFragments) {
|
for (IIndexFragment fragment : fFragments) {
|
||||||
fFragment.resetCacheCounters();
|
fragment.resetCacheCounters();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -661,9 +661,9 @@ public class CIndex implements IIndex {
|
||||||
|
|
||||||
public IIndexFile[] getAllFiles() throws CoreException {
|
public IIndexFile[] getAllFiles() throws CoreException {
|
||||||
HashMap<IIndexFileLocation, IIndexFile> result= new HashMap<IIndexFileLocation, IIndexFile>();
|
HashMap<IIndexFileLocation, IIndexFile> result= new HashMap<IIndexFileLocation, IIndexFile>();
|
||||||
for (IIndexFragment ifrag : fFragments) {
|
for (IIndexFragment fragment : fFragments) {
|
||||||
for (IIndexFragmentFile iff : ifrag.getAllFiles()) {
|
for (IIndexFragmentFile file : fragment.getAllFiles()) {
|
||||||
result.put(iff.getLocation(), iff);
|
result.put(file.getLocation(), file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result.values().toArray(new IIndexFile[result.size()]);
|
return result.values().toArray(new IIndexFile[result.size()]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue