[PATCH] xindice/tools/XMLTools.java

Todd Byrne <[email protected]>
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
I fixed up some issues with the way the Help menu was being printed. I 
found that when a command didn't run for some reason that the helpful 
stuff would get shoved off screen. I also refactored the printHelp out 
of the XMLTools.java and created a new class HelpClass to print the help 
menu. The help refactored allowed me to get --help to print the help 
menu also.

Included is:

XMLTools.java.patch
Some refactoring and and wrapping of a class variable in the table 
Hashtable.

commands.xml.patch
Added two more commands to handle both the -h action and --help action.

HelpClass.java
New class that extends Command and implements it execute method. Just 
takes a command NodeList from the Hashtable and prints out the same help 
  menu.


Todd Byrne
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.