1
/*******************************************************************************
2
* Copyright (c) 2007, 2008 Wind River Systems, Inc. and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Markus Schorn - initial API and implementation
10
*******************************************************************************/
12
package org.eclipse.cdt.internal.core.pdom;
14
public class IndexerProgress {
16
public int fRequestedFilesCount;
17
public int fCompletedSources;
18
public int fPrimaryHeaderCount; // headers parsed that were actually requested
19
public int fCompletedHeaders; // all headers including those found through inclusions
20
public int fTimeEstimate; // fall-back for the time where no file-count is available
22
public IndexerProgress() {
25
public IndexerProgress(IndexerProgress info) {
26
fRequestedFilesCount= info.fRequestedFilesCount;
27
fCompletedSources= info.fCompletedSources;
28
fCompletedHeaders= info.fCompletedHeaders;
29
fPrimaryHeaderCount= info.fPrimaryHeaderCount;
32
public int getEstimatedTicks() {
33
return fRequestedFilesCount > 0 ? fRequestedFilesCount : fTimeEstimate;