Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2011-03-24 10:34:21 -0400
committerDJ Houghton2011-03-24 10:34:21 -0400
commit224ebc099506c0108995335718350ace831cd607 (patch)
tree0d66ef87550a7bbc5c66716f64d5b133d4b1e64f /bundles/org.eclipse.equinox.p2.repository
parent4664e22e3a5d13b1c81fda213a3b369fe6bf6786 (diff)
downloadrt.equinox.p2-224ebc099506c0108995335718350ace831cd607.tar.gz
rt.equinox.p2-224ebc099506c0108995335718350ace831cd607.tar.xz
rt.equinox.p2-224ebc099506c0108995335718350ace831cd607.zip
Bug 338560 - Plugin install dialogs are have an unusably long status line
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository')
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/ProgressStatistics.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/ProgressStatistics.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/ProgressStatistics.java
index bc5a2105f..c08315a26 100644
--- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/ProgressStatistics.java
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/ProgressStatistics.java
@@ -125,7 +125,10 @@ public class ProgressStatistics {
}
public synchronized String report() {
- return m_total != -1 ? NLS.bind(Messages.fetching_0_from_1_2_of_3_at_4, new String[] {m_fileName, m_uri.toString(), convert(m_current), convert(m_total), convert(getRecentSpeed())}) : NLS.bind(Messages.fetching_0_from_1_2_at_3, new String[] {m_fileName, m_uri.toString(), convert(m_current), convert(getRecentSpeed())});
+ String uriString = m_uri.toString();
+ if (uriString.endsWith(m_fileName))
+ uriString = uriString.substring(0, uriString.lastIndexOf(m_fileName));
+ return m_total != -1 ? NLS.bind(Messages.fetching_0_from_1_2_of_3_at_4, new String[] {m_fileName, uriString, convert(m_current), convert(m_total), convert(getRecentSpeed())}) : NLS.bind(Messages.fetching_0_from_1_2_at_3, new String[] {m_fileName, m_uri.toString(), convert(m_current), convert(getRecentSpeed())});
}
public void setReportInterval(int reportInterval) {

Back to the top