Mercurial > projects > dwt-addons
comparison dwtx/jface/bindings/BindingManager.d @ 71:4878bef4a38e
Some fixing
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 04:03:58 +0200 |
parents | 46a6e0e6ccd4 |
children | 7ffeace6c47f |
comparison
equal
deleted
inserted
replaced
70:46a6e0e6ccd4 | 71:4878bef4a38e |
---|---|
1217 * should be retrieved; must not be <code>null</code>. | 1217 * should be retrieved; must not be <code>null</code>. |
1218 * @return The active bindings for the given command; this value may be | 1218 * @return The active bindings for the given command; this value may be |
1219 * <code>null</code> if there are no active bindings. | 1219 * <code>null</code> if there are no active bindings. |
1220 * @since 3.2 | 1220 * @since 3.2 |
1221 */ | 1221 */ |
1222 private final Binding[] getActiveBindingsFor1(final ParameterizedCommand command) { | 1222 private final Binding[] getActiveBindingsFor1(ParameterizedCommand command) { |
1223 TriggerSequence[] triggers = getActiveBindingsFor(command); | 1223 TriggerSequence[] triggers = getActiveBindingsFor(command); |
1224 if (triggers.length is 0) { | 1224 if (triggers.length is 0) { |
1225 return null; | 1225 return null; |
1226 } | 1226 } |
1227 | 1227 |
1275 * @since 3.2 | 1275 * @since 3.2 |
1276 */ | 1276 */ |
1277 public final TriggerSequence getBestActiveBindingFor(String commandId) { | 1277 public final TriggerSequence getBestActiveBindingFor(String commandId) { |
1278 return getBestActiveBindingFor(new ParameterizedCommand(commandManager.getCommand(commandId), null)); | 1278 return getBestActiveBindingFor(new ParameterizedCommand(commandManager.getCommand(commandId), null)); |
1279 } | 1279 } |
1280 | 1280 |
1281 /** | 1281 /** |
1282 * @param command | 1282 * @param command |
1283 * @return | 1283 * @return |
1284 * blah | 1284 * blah |
1285 */ | 1285 */ |
1286 public final TriggerSequence getBestActiveBindingFor(final ParameterizedCommand command) { | 1286 public final TriggerSequence getBestActiveBindingFor(ParameterizedCommand command) { |
1287 final Binding[] bindings = getActiveBindingsFor1(command); | 1287 final Binding[] bindings = getActiveBindingsFor1(command); |
1288 if ((bindings is null) || (bindings.length is 0)) { | 1288 if ((bindings is null) || (bindings.length is 0)) { |
1289 return null; | 1289 return null; |
1290 } | 1290 } |
1291 | 1291 |