Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2013-09-17 08:50:25 -0400
committerFred Bricon2013-09-17 08:50:25 -0400
commit887818f27ca5415fcdfbe55be4ec07ae2187c60d (patch)
tree7e7b4051134eaffb2b6373aac83062558b6dd932
parentf08b5f8fcdd7ad2e3205e2aa6aee1f383aba3653 (diff)
downloadm2e-core-887818f27ca5415fcdfbe55be4ec07ae2187c60d.tar.gz
m2e-core-887818f27ca5415fcdfbe55be4ec07ae2187c60d.tar.xz
m2e-core-887818f27ca5415fcdfbe55be4ec07ae2187c60d.zip
Fix progress task name during download start
Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractTransferListenerAdapter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractTransferListenerAdapter.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractTransferListenerAdapter.java
index 46c525aa..54f315b4 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractTransferListenerAdapter.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/AbstractTransferListenerAdapter.java
@@ -50,7 +50,7 @@ abstract class AbstractTransferListenerAdapter {
this.monitor = monitor == null ? new NullProgressMonitor() : monitor;
}
- protected void formatBytes(long n, StringBuffer sb) {
+ protected void formatBytes(long n, StringBuilder sb) {
int i = 0;
while(n >= 1024 && ++i < units.length)
n >>= 10;
@@ -72,7 +72,7 @@ abstract class AbstractTransferListenerAdapter {
protected void transferStarted(String artifactUrl) {
log.info(NLS.bind("Downloading {0}", artifactUrl));
// monitor.beginTask("0% "+e.getWagon().getRepository()+"/"+e.getResource().getName(), IProgressMonitor.UNKNOWN);
- monitor.subTask(Messages.AbstractTransferListenerAdapter_4 + artifactUrl);
+ monitor.subTask(NLS.bind(Messages.AbstractTransferListenerAdapter_4, artifactUrl));
}
protected void transferProgress(String artifactUrl, long total, int length) throws OperationCanceledException {
@@ -85,7 +85,7 @@ abstract class AbstractTransferListenerAdapter {
complete += length;
progressMap.put(artifactUrl, complete);
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
formatBytes(complete, sb);
if(total != WagonConstants.UNKNOWN_LENGTH) {

Back to the top