aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Angers2012-04-26 09:20:46 (EDT)
committerThomas Watson2012-04-26 09:20:46 (EDT)
commita193f94ec1e690835c1cb93363c0b33848424d54 (patch)
tree4b1f957d3a6ae72ecd3ee881adf07e2830f8597e
parentcff786594fb9c421ec4151a65280f5bc90145c8d (diff)
downloadrt.equinox.bundles-a193f94ec1e690835c1cb93363c0b33848424d54.zip
rt.equinox.bundles-a193f94ec1e690835c1cb93363c0b33848424d54.tar.gz
rt.equinox.bundles-a193f94ec1e690835c1cb93363c0b33848424d54.tar.bz2
Bug 377708 - [console] Mixed-case commands from org.eclipse.equinox.appv20120426-1320I20120426-1030I20120426-1000
not working anymore.
-rwxr-xr-xbundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/command/adapter/CommandProviderAdapter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/command/adapter/CommandProviderAdapter.java b/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/command/adapter/CommandProviderAdapter.java
index 08de8e8..f784835 100755
--- a/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/command/adapter/CommandProviderAdapter.java
+++ b/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/command/adapter/CommandProviderAdapter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010, 2011 IBM Corporation, SAP AG.
+ * Copyright (c) 2010, 2012 IBM Corporation, SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -53,7 +53,7 @@ public class CommandProviderAdapter {
private Method findCommand(Object commandName) {
for (Method command : commands) {
- if (command.getName().equals(commandName))
+ if (command.getName().equalsIgnoreCase(commandName.toString()))
return command;
}
throw new IllegalArgumentException("Cannot find the command method for: " + commandName);