aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-10-17 22:21:38 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-10-17 22:21:38 -0700
commitf5e5b98c3a993873bfbdd19ef28d14f8ccca4b0c (patch)
tree2d3418715dfd317dee60d1a88e42bd3aa3df8020 /org.eclipse.jgit/src
parentdc5027dcef6f7f3753ed41469b18f264e3bcc791 (diff)
downloadjgit-f5e5b98c3a993873bfbdd19ef28d14f8ccca4b0c.tar.gz
jgit-f5e5b98c3a993873bfbdd19ef28d14f8ccca4b0c.zip
IndexPack: Make translated progress messages non-static
These messages may need to change depending on the current thread's configured locale, and thus cannot be static. Change-Id: I96751a63852ec9c4bf6c47edadcf8752700543df Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/IndexPack.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/IndexPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/IndexPack.java
index f5cdac9883..716416a367 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/IndexPack.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/IndexPack.java
@@ -84,12 +84,6 @@ import org.eclipse.jgit.util.NB;
/** Indexes Git pack files for local use. */
public class IndexPack {
- /** Progress message when reading raw data from the pack. */
- public static final String PROGRESS_DOWNLOAD = JGitText.get().receivingObjects;
-
- /** Progress message when computing names of delta compressed objects. */
- public static final String PROGRESS_RESOLVE_DELTA = JGitText.get().resolvingDeltas;
-
/**
* Size of the internal stream buffer.
* <p>
@@ -404,7 +398,8 @@ public class IndexPack {
baseById = new ObjectIdSubclassMap<DeltaChain>();
baseByPos = new LongMap<UnresolvedDelta>();
- progress.beginTask(PROGRESS_DOWNLOAD, (int) objectCount);
+ progress.beginTask(JGitText.get().receivingObjects,
+ (int) objectCount);
for (int done = 0; done < objectCount; done++) {
indexOneObject();
progress.update(1);
@@ -473,7 +468,7 @@ public class IndexPack {
private void resolveDeltas(final ProgressMonitor progress)
throws IOException {
- progress.beginTask(PROGRESS_RESOLVE_DELTA, deltaCount);
+ progress.beginTask(JGitText.get().resolvingDeltas, deltaCount);
final int last = entryCount;
for (int i = 0; i < last; i++) {
final int before = entryCount;