Files
VisualSapfor/src/_VisualDVM/Passes/All/UpdateBugReportProgress.java

28 lines
949 B
Java
Raw Normal View History

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-14 15:19:13 +03:00
import _VisualDVM.Current;
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 {
if (!Global.mainModule.Check(Log, Current.BugReport))
2023-09-17 22:13:42 +03:00
return false;
PercentsForm f = new PercentsForm();
if (f.ShowDialog("Завершённость работы над ошибкой", Global.mainModule.getBugReport().percentage))
2023-09-17 22:13:42 +03:00
return super.canStart("percentage", f.Result);
return false;
}
@Override
protected boolean canUpdate() {
return Global.mainModule.getAccount().ExtendedCheckAccessRights(target, Log);
2023-09-17 22:13:42 +03:00
}
}