Ignore:
Timestamp:
08/28/12 13:33:23 (12 years ago)
Author:
sherbold
Message:
  • modified Command.help(): the help now returns a string with its usage instead of writing directly to the console
  • modified listCommands: now writes the help string of each command instead of just the name; this way, the parameters are displayed directly
  • moved listCommands from quest-ui-core to java-utils
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDshowTrie.java

    r434 r664  
    1414import de.ugoe.cs.quest.ui.GlobalDataContainer; 
    1515import de.ugoe.cs.quest.usageprofiles.Trie; 
    16 import de.ugoe.cs.quest.usageprofiles.TrieBasedModel; 
    1716import de.ugoe.cs.quest.usageprofiles.Trie.Edge; 
    1817import de.ugoe.cs.quest.usageprofiles.Trie.TrieVertex; 
     18import de.ugoe.cs.quest.usageprofiles.TrieBasedModel; 
    1919import de.ugoe.cs.util.console.Command; 
    20 import de.ugoe.cs.util.console.Console; 
    2120import edu.uci.ics.jung.algorithms.layout.Layout; 
    2221import edu.uci.ics.jung.algorithms.layout.TreeLayout; 
     
    4241         */ 
    4342        @Override 
    44         public void help() { 
    45                 Console.println("Usage: showTrie <modelName>"); 
     43        public String help() { 
     44                return "showTrie <modelName>"; 
    4645        } 
    4746 
Note: See TracChangeset for help on using the changeset viewer.