/** * Gets the tool command associated with the given command-ID or <code>null</code> if a tool command with the given * command-ID has not been registered. */ @Override public ToolCommand getToolCommand(String commandID) { final Command command = getCommand(commandID); if (command instanceof ToolCommand) { return (ToolCommand) command; } return null; }
/** * Gets the command associated with the given command-ID or <code>null</code> if an command with the given * command-ID has not been registered. */ @Override public ExecCommand getExecCommand(String commandID) { final Command command = getCommand(commandID); if (command instanceof ExecCommand) { return (ExecCommand) command; } return null; }
/** * Gets the command group associated with the given command-ID or <code>null</code> if an command group with the * given command-ID has not been registered. */ @Override public CommandGroup getCommandGroup(String commandID) { Command command = getCommand(commandID); if (command instanceof CommandGroup) { return (CommandGroup) command; } return null; }