You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Todd Byrne <by...@cns.montana.edu> on 2005/06/06 20:32:07 UTC
[PATCH] xindice/tools/XMLTools.java
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
Re: [PATCH] xindice/tools/XMLTools.java
Posted by Vadim Gritsenko <va...@reverycodes.com>.
Todd Byrne wrote:
> Forgot the files. :(
JFYI, I'm waiting on SVN conversion... Will commit/review after that...
Vadim
Re: [PATCH] xindice/tools/XMLTools.java
Posted by Todd Byrne <by...@cns.montana.edu>.
Forgot the files. :(
Todd
Todd Byrne wrote:
> 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