/** * Gets the bind object for the given command * * @param command the plugin command to get the object for * @return the object or <code>null</code> if none found for the given plugin command */ protected K getObjectInternal(CommandDefinition command) { K object = commandMapping.get(command.getIdentifierString()); return object; }
/** * Binds the given object to the given command.<br> * Mappings to <code>null</code> are not save, so if you want to clear a mapping, use <code>null * </code> as value for the key sequence.<br> * * @param command the plugin command * @param object the object to bind to the command */ protected void addCommandMappingInternal(CommandDefinition command, K object) { commandMapping.put(command.getIdentifierString(), object); identifierToCommand.put(command.getIdentifierString(), command); }