917 |
return true; |
return true; |
918 |
} |
} |
919 |
} |
} |
920 |
|
|
921 |
|
/** |
922 |
|
* This task formats the instruments database. |
923 |
|
*/ |
924 |
|
public static class Format extends EnhancedTask { |
925 |
|
/** |
926 |
|
* Formats the instruments database.. |
927 |
|
*/ |
928 |
|
public |
929 |
|
Format() { |
930 |
|
setTitle("InstrumentsDb.Format_task"); |
931 |
|
String s = i18n.getMessage("InstrumentsDb.Format.desc"); |
932 |
|
setDescription(s); |
933 |
|
} |
934 |
|
|
935 |
|
/** The entry point of the task. */ |
936 |
|
public void |
937 |
|
run() { |
938 |
|
try { CC.getClient().formatInstrumentsDb(); } |
939 |
|
catch(Exception x) { |
940 |
|
setErrorMessage(getDescription() + ": " + HF.getErrorMessage(x)); |
941 |
|
CC.getLogger().log(Level.FINE, getErrorMessage(), x); |
942 |
|
} |
943 |
|
} |
944 |
|
} |
945 |
} |
} |