summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2012-07-17 10:13:22 (EDT)
committerPascal Rapicault2012-07-17 10:13:22 (EDT)
commit9587da532b3c2bd99da6b924c06b653261b7641d (patch)
treeb5af7f47e833326881e29c0b60b9b535b1895bf7
parente6ed13212ea5c1a7daaf8f9d52f5a885b0929e1f (diff)
downloadrt.equinox.p2-9587da532b3c2bd99da6b924c06b653261b7641d.zip
rt.equinox.p2-9587da532b3c2bd99da6b924c06b653261b7641d.tar.gz
rt.equinox.p2-9587da532b3c2bd99da6b924c06b653261b7641d.tar.bz2
Improve toString
-rw-r--r--bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/SiteFeature.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/SiteFeature.java b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/SiteFeature.java
index d720c20..96bbee1 100644
--- a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/SiteFeature.java
+++ b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/SiteFeature.java
@@ -441,10 +441,14 @@ public class SiteFeature {
*/
public String toString() {
StringBuffer buffer = new StringBuffer();
- buffer.append(getClass().toString() + " :"); //$NON-NLS-1$
- buffer.append(" at "); //$NON-NLS-1$
- if (url != null)
+ if (featureId != null)
+ buffer.append(featureId).append(' ');
+ if (featureVersion != null)
+ buffer.append(featureVersion).append(' ');
+ if (url != null) {
+ buffer.append(" at "); //$NON-NLS-1$
buffer.append(url.toExternalForm());
+ }
return buffer.toString();
}