2024-10-14 12:14:01 +03:00
|
|
|
package _VisualDVM.Passes.All;
|
2024-10-08 22:33:49 +03:00
|
|
|
import Common.Visual.Windows.Dialog.PercentsForm;
|
2024-10-13 22:08:13 +03:00
|
|
|
import _VisualDVM.Global;
|
2023-09-17 22:13:42 +03:00
|
|
|
public class UpdateBugReportProgress extends UpdateBugReportField {
|
|
|
|
|
@Override
|
|
|
|
|
public String getIconPath() {
|
|
|
|
|
return "/icons/Progress.png";
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public String getButtonText() {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected boolean canStart(Object... args) throws Exception {
|
2024-10-25 00:50:19 +03:00
|
|
|
if (!Global.componentsServer.db.bugReports.getUI().CheckCurrent(Log))
|
2023-09-17 22:13:42 +03:00
|
|
|
return false;
|
|
|
|
|
PercentsForm f = new PercentsForm();
|
2024-10-24 23:40:24 +03:00
|
|
|
if (f.ShowDialog("Завершённость работы над ошибкой",
|
|
|
|
|
Global.componentsServer.db.bugReports.getUI().getCurrent().percentage))
|
2023-09-17 22:13:42 +03:00
|
|
|
return super.canStart("percentage", f.Result);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected boolean canUpdate() {
|
2025-02-01 22:24:15 +03:00
|
|
|
return target.canAppend(Global.mainModule.getAccount(), Log);
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
}
|