Changeset 732 for trunk/java-utils/src/main
- Timestamp:
- 08/31/12 13:23:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDlistCommands.java
r731 r732 28 28 29 29 List<String> commandPackages = CommandExecuter.getInstance().getCommandPackages(); 30 31 for( String commandPackage : commandPackages ) { 32 Console.println(commandPackage); 30 31 for (String commandPackage : commandPackages) { 32 String[] packageSplit = commandPackage.split("\\."); 33 if (packageSplit[packageSplit.length - 1].equals("commands")) { 34 Console.println(packageSplit[packageSplit.length - 2]); 35 } 36 else if (packageSplit[packageSplit.length - 1].equals("defaultcommands")) { 37 Console.println("general"); 38 } 39 else { 40 Console.println(packageSplit[packageSplit.length - 1]); 41 } 33 42 for (Command command : commands) { 34 if (commandPackage.equals(command.getClass().getPackage().getName())) {43 if (commandPackage.equals(command.getClass().getPackage().getName())) { 35 44 Console.println(" " + command.help()); 36 45 }
Note: See TracChangeset
for help on using the changeset viewer.