Exemple #1
0
 public synchronized static String[] getKeyList() {
     if (Replacer.KEYS == null) {
         Replacer.initKeys();
     }
     final int size = Replacer.KEYS.size();
     final String[] keys = new String[size];
     for (int i = 0; i < size; i++) {
         final String[] key = Replacer.KEYS.get(i);
         keys[i] = "%" + key[0] + "%   (" + key[1] + ")";
     }
     return keys;
 }
Exemple #2
0
 public synchronized static String getKey(final int index) {
     if (Replacer.KEYS == null) {
         Replacer.initKeys();
     }
     return index >= Replacer.KEYS.size() ? null : Replacer.KEYS.get(index)[0];
 }
Exemple #3
0
 private static void initKeys() {
     Replacer.KEYS = new ArrayList<String[]>();
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_PACKAGE.PASSWORD", _JDT._.replacer_password() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_PACKAGE.AUTO_PASSWORD", _JDT._.replacer_autopassword() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_PACKAGE.FILELIST", _JDT._.replacer_filelist() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_PACKAGE.PACKAGENAME", _JDT._.replacer_packagename() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_PACKAGE.COMMENT", _JDT._.replacer_comment() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_PACKAGE.DOWNLOAD_DIRECTORY", _JDT._.replacer_downloaddirectory() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_FILE.DOWNLOAD_PATH", _JDT._.replacer_filepath() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_FILE.HOST", _JDT._.replacer_hoster() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_FILE.NAME", _JDT._.replacer_filename() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_FILE.FILESIZE", _JDT._.replacer_filesize() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_FILE.AVAILABLE", _JDT._.replacer_available() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_FILE.BROWSER_URL", _JDT._.replacer_browserurl() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_FILE.DOWNLOAD_URL", _JDT._.replacer_downloadurl() });
     Replacer.KEYS.add(new String[] { "LAST_FINISHED_FILE.CHECKSUM", _JDT._.replacer_checksum() });
     Replacer.KEYS.add(new String[] { "SYSTEM.IP", _JDT._.replacer_ipaddress() });
     Replacer.KEYS.add(new String[] { "SYSTEM.DATE", _JDT._.replacer_date() });
     Replacer.KEYS.add(new String[] { "SYSTEM.TIME", _JDT._.replacer_time() });
     Replacer.KEYS.add(new String[] { "SYSTEM.JAVA_VERSION", _JDT._.replacer_javaversion() });
     Replacer.KEYS.add(new String[] { "JD.REVISION", _JDT._.replacer_jdversion() });
     Replacer.KEYS.add(new String[] { "JD.HOME_DIR", _JDT._.replacer_jdhomedirectory() });
 }