aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLazar Kirchev2012-09-30 05:28:33 (EDT)
committerLazar Kirchev2012-09-30 05:28:33 (EDT)
commit5e1f02ff35516eedd5ad541f5ba83613d26a21f5 (patch)
tree71e57e8527f726d196553230ca03a9ee0c135447
parentc239b4595c36da8371c91ae8b64f288e873187df (diff)
downloadrt.equinox.bundles-5e1f02ff35516eedd5ad541f5ba83613d26a21f5.zip
rt.equinox.bundles-5e1f02ff35516eedd5ad541f5ba83613d26a21f5.tar.gz
rt.equinox.bundles-5e1f02ff35516eedd5ad541f5ba83613d26a21f5.tar.bz2
Bug 390763 - Improve EquinoxConsoleConverter.convert() to check if the object for conversion is Long
-rwxr-xr-xbundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/EquinoxCommandsConverter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/EquinoxCommandsConverter.java b/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/EquinoxCommandsConverter.java
index 76ce911..d3300c4 100755
--- a/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/EquinoxCommandsConverter.java
+++ b/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/EquinoxCommandsConverter.java
@@ -57,6 +57,12 @@ public class EquinoxCommandsConverter implements Converter {
if(desiredType == Bundle.class) {
Bundle bundle = null;
+ if (in instanceof Long) {
+ long id = ((Long) in).longValue();
+ bundle = context.getBundle(id);
+ return bundle;
+ }
+
try {
long id = Long.parseLong((String) in);
bundle = context.getBundle(id);