protected void checkSubclass() {
}
private void showDownSpeedLimitScaleWindow() {
SpeedScaleShell speedScaleWidget = new SpeedScaleShell(_._("mainwindow.statusbar.speed_scale.download") + " :");
long down_limit = 0;
try {
down_limit = config_manager.getDownloadLimit() / 1024;
} catch (ConfigurationManagerException e) {
e.printStackTrace();
}
speedScaleWidget.setMaxValue(down_limit+500);
speedScaleWidget.setMaxTextValue(down_limit+500);
speedScaleWidget.addOption(_._("mainwindow.statusbar.speed_scale.no_limit"), 0);
List<Long> sets = getDefaultSpeedValues(down_limit);
for(Long v : sets) {
speedScaleWidget.addOption(SpeedFormatter.formatByteCountToKiBEtcPerSec(v * 1024,true), v);
}
boolean result = speedScaleWidget.open(down_limit, JMConstants.isWindows);
if (result) {
long value = speedScaleWidget.getValue();
value*=1024;
try {
config_manager.setDownloadLimit(value);
} catch (ConfigurationManagerException e) {
e.printStackTrace();