View Javadoc
1 /* 2 Bloof - visualize the evolution of your software project 3 Copyright ( C ) 2003 Lukasz Pekacki <lukasz@pekacki.de> 4 http://bloof.sf.net/ 5 6 This program is free software; you can redistribute it and/or modify it 7 under the terms of the GNU General Public License. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License along with 15 this program; if not, write to the Free Software Foundation, Inc., 16 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 18 $RCSfile: Text.java,v $ 19 Created on $Date: 2003/09/06 08:46:36 $ 20 */ 21 package net.sf.bloof.script.intl; 22 23 24 25 import java.util.ListResourceBundle; 26 27 /*** 28 * This class holds the keys of all Strings that can be presented to the 29 * user. It also holds all values of the keys in English language. 30 * @author Lukasz Pekacki <pekacki@users.sourceforge.net> 31 * @version $Id: Text.java,v 1.1 2003/09/06 08:46:36 pekacki Exp $ 32 */ 33 public class Text extends ListResourceBundle { 34 /*** 35 * @see java.util.ListResourceBundle#getContents( ) 36 */ 37 public final Object[][] getContents( ) { 38 return CONTENTS; 39 } 40 41 /*** 42 * These constants are used by the caller to identify what text is 43 * needed; which version of the text is actually returned is determined 44 * by the ResourceBundle mechanism. 45 * 46 * Using variable names which reflect the content clarifies the 47 * intent of the code in the user of this class. 48 */ 49 public static final TextKey 50 BLOOF_COMMANDLINE = new TextKey( "BLOOF_COMMANDLINE" ), 51 BLOOF_NAME = new TextKey( "BLOOF_NAME" ), 52 BLOOF_SHORTNAME = new TextKey( "BLOOF_SHORTNAME" ), 53 CLOSING_PROJECT = new TextKey( "CLOSING_PROJECT" ), 54 COMMANDLINE_ARGUMENTS = new TextKey( "COMMANDLINE_ARGUMENTS" ), 55 COMMANDLINE_USAGE = new TextKey( "COMMANDLINE_USAGE" ), 56 CONNECTION_METHOD = new TextKey( "CONNECTION_METHOD" ), 57 COPYRIGHT = new TextKey( "COPYRIGHT" ), 58 DATE_FORMAT = new TextKey( "DATE_FORMAT" ), 59 DESCRIPTION = new TextKey( "DESCRIPTION" ), 60 ERROR = new TextKey( "ERROR" ), 61 ERROR_OCCURED = new TextKey( "ERROR_OCCURED" ), 62 EXIT = new TextKey( "EXIT" ), 63 EXPORT_RESULT_TO_XML = new TextKey( "EXPORT_RESULT_TO_XML" ), 64 FROM = new TextKey( "FROM" ), 65 HELP = new TextKey( "HELP" ), 66 HELP_TEXT = new TextKey( "HELP_TEXT" ), 67 HOSTNAME = new TextKey( "HOSTNAME" ), 68 IMPORT_PROJECT = new TextKey( "IMPORT_PROJECT" ), 69 IO_ERROR = new TextKey( "IO_ERROR" ), 70 LANGUAGE = new TextKey( "LANGUAGE" ), 71 LANGUAGE_ID = new TextKey( "LANGUAGE_ID" ), 72 LICENSE = new TextKey( "LICENSE" ), 73 METRIC = new TextKey( "METRIC" ), 74 MODULE_NAME = new TextKey( "MODULE_NAME" ), 75 NAME = new TextKey( "NAME" ), 76 OK = new TextKey( "OK" ), 77 OPEN_PROJECT = new TextKey( "OPEN_PROJECT" ), 78 OPTIONS = new TextKey( "OPTIONS" ), 79 PASSWORD = new TextKey( "PASSWORD" ), 80 PROJECT_NAME = new TextKey( "PROJECT_NAME" ), 81 PROJECTS = new TextKey( "PROJECTS" ), 82 RESULTS = new TextKey( "RESULTS" ), 83 SAVE_TO_XML_FILE = new TextKey( "SAVE_TO_XML_FILE" ), 84 SQL_QUERY = new TextKey("SQL_QUERY"), 85 TIME_SPAN = new TextKey( "TIME_SPAN" ), 86 TIMESTAMP_FORMAT = new TextKey( "TIMESTAMP_FORMAT" ), 87 TO = new TextKey( "TO" ), 88 UPDATE_PROJECT = new TextKey( "UPDATE_PROJECT" ), 89 USERNAME = new TextKey( "USERNAME" ), 90 VALUE = new TextKey( "VALUE" ), 91 VERSION = new TextKey( "VERSION" ), 92 VISIT_US = new TextKey( "VISIT_US" ), 93 WHOLE_TIMESPAN = new TextKey( "WHOLE_TIMESPAN" ); 94 95 /*** 96 * Mappings of keys and Strings 97 * */ 98 private static final Object[][] CONTENTS = { 99 {Text.UPDATE_PROJECT.getName( ), "Update project."}, 100 {Text.SAVE_TO_XML_FILE.getName( ), "Save to XML file."}, 101 {Text.RESULTS.getName( ), "Results"}, 102 {Text.PROJECT_NAME.getName( ), "Project name"}, 103 {Text.EXPORT_RESULT_TO_XML.getName( ), "Export result to XML"}, 104 {Text.OPTIONS.getName( ), "Options"}, 105 {Text.NAME.getName( ), "Name"}, 106 {Text.USERNAME.getName( ), "User name"}, 107 {Text.PASSWORD.getName( ), "Password"}, 108 {Text.HOSTNAME.getName( ), "Host name"}, 109 {Text.MODULE_NAME.getName( ), "Module name"}, 110 {Text.CONNECTION_METHOD.getName( ), "Connection method"}, 111 {Text.OK.getName( ), "Ok"}, 112 {Text.TIMESTAMP_FORMAT.getName( ), "yyyy-MM-dd H:m:s"}, 113 {Text.WHOLE_TIMESPAN.getName( ), "Whole time span"}, 114 {Text.HELP.getName( ), "Help"}, 115 {Text.LANGUAGE.getName( ), "Language"}, 116 {Text.IMPORT_PROJECT.getName( ), "Import project"}, 117 {Text.OPEN_PROJECT.getName( ), "Open project"}, 118 {Text.EXIT.getName( ), "Exit"}, 119 {Text.BLOOF_NAME.getName( ), "Bloof Script - visualize the evolution of your software projects"}, 120 {Text.BLOOF_SHORTNAME.getName( ), "Bloof Script"}, 121 {Text.BLOOF_COMMANDLINE.getName( ), 122 "._ ._\n" 123 +"|_)| _ _ _|_ Version "+"0.1"+", ( c ) 2003 by L. Pekacki\n" 124 +"|_)|(_)(_) |Script - visualize the evolution of your software projects" 125 }, 126 {Text.VERSION.getName( ), "0.1"}, 127 {Text.VISIT_US.getName( ), "Visit our homepage at http://bloof.sf.net/"}, 128 {Text.LICENSE.getName( ), 129 "LICENSE This program is free software; you can redistribute it and/or modify it\n" 130 +"under the terms of the GNU General Public License as published by \n" 131 +"the Free Software Foundation; either version 2 of the License, \n" 132 +"or ( at your option ) any later version.\n" 133 +"\nThis program is distributed in the hope that it will be useful, \n" 134 +"but WITHOUT ANY WARRANTY; without even the implied warranty of \n" 135 +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n" 136 +"See the GNU General Public License for more details. \n\n" 137 +"You should have received a copy of the GNU General Public License \n" 138 +"along with this program; if not, write to the Free Software Foundation, \n" 139 +"Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA." 140 }, 141 {Text.COPYRIGHT.getName( ), "Copyright ( C ) 2003 Lukasz Pekacki <pekacki@users.sourceforge.net>"}, 142 {Text.COMMANDLINE_ARGUMENTS.getName( ), 143 "Valid command line arguments:\n" 144 +"[{-h,--help}] Show this information.\n" 145 +"[{-v,--verbosity} <level>] Level of verbosity. Valid levels are \n" 146 +" silent, verbose or debug.\n" 147 +"[{-l,--license}] Show licence information.\n" 148 +" is: startapp.\n" 149 }, 150 {Text.COMMANDLINE_USAGE.getName( ), "Usage: java -jar bloof.jar [options]\n" 151 +"use [{-h,--help}] for more information." 152 }, 153 {Text.IO_ERROR.getName( ), "IO Access failed."}, 154 {Text.DATE_FORMAT.getName( ), "yyyy-MM-dd"}, 155 {Text.ERROR.getName( ), "Error"}, 156 {Text.LANGUAGE_ID.getName( ), "English"}, 157 {Text.METRIC.getName( ), "Metric"}, 158 {Text.TIME_SPAN.getName( ), "Time span"}, 159 {Text.FROM.getName( ), "From"}, 160 {Text.TO.getName( ), "To"}, 161 {Text.ERROR_OCCURED.getName( ), "Error occured"}, 162 { Text.VALUE.getName(), "Value" }, 163 { Text.CLOSING_PROJECT.getName(), "Closing project." }, 164 { Text.DESCRIPTION.getName(), "Description" }, 165 { Text.SQL_QUERY.getName(), "SQL query" }, 166 { Text.PROJECTS.getName(), "Projects" }, 167 { Text.HELP_TEXT.getName(), "Valid commands:\n" 168 +"help, ? Show this information.\n" 169 +"exit Close shell session. \n" 170 +"import <name> <scm> <db> Import project with specified name\n" 171 +"open <db> Open project on specified database\n" 172 +"run <metric> [file filter ][time filter] [developer filter]\n" 173 +" Run metric with specified parameters\n" 174 +"metrics Print list of available merics\n" 175 +"results Print list of already available results\n" 176 +"export <result=> <file=> Exports the result to an XML file\n" 177 }, 178 {Text.COMMANDLINE_USAGE.getName( ), "Usage: java -jar bloof.jar [options]\n" 179 +"use [{-h,--help}] for more information." 180 } 181 }; 182 183 }

This page was automatically generated by Maven