If it's a command, i should use commandargs. I think that there is a possibility that Bindings will have more items then command in some cases
chillworld ( 2018-08-17 11:04:35 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
@DefaultCommand
public void defaultCommand(@ContextParam(ContextType.EXECUTION) Execution exc,
@ContextParam(ContextType.COMMAND_NAME) String eventName) {
binder.postCommand("real"+eventName,exc.getParameterMap());
}
But it doesn't work as my expectation. Please help
@DefaultCommand
public void foo(@ContextParam(ContextType.BIND_CONTEXT) BindContextImpl bindContext) {
Clients.showNotification(String.valueOf(bindContext.getCommandArgs()));
}
You need to use the BindContextImpl
because in the BindContext
you can only query 1.
That method will return your map with all your parameters.
Chill.
If it's a command, i should use commandargs. I think that there is a possibility that Bindings will have more items then command in some cases
chillworld ( 2018-08-17 11:04:35 +0800 )editAsked: 2018-08-16 16:41:15 +0800
Seen: 8 times
Last updated: Aug 17 '18