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;
|
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-13 22:08:13 +03:00
|
|
|
if (!Global.mainModule.Check(Log, Current.BugReport))
|
2023-09-17 22:13:42 +03:00
|
|
|
return false;
|
|
|
|
|
PercentsForm f = new PercentsForm();
|
2024-10-13 22:08:13 +03:00
|
|
|
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() {
|
2024-10-13 22:08:13 +03:00
|
|
|
return Global.mainModule.getAccount().ExtendedCheckAccessRights(target, Log);
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
}
|