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

28 lines
923 B
Java
Raw Normal View History

package Visual_DVM_2021.Passes.All;
2024-10-09 23:37:58 +03:00
import Common.Current_;
2024-10-09 22:01:19 +03:00
import _VisualDVM.Current;
2024-10-08 22:33:49 +03:00
import Common.Visual.Windows.Dialog.PercentsForm;
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-09 23:37:58 +03:00
if (!Current_.Check(Log, Current.BugReport))
2023-09-17 22:13:42 +03:00
return false;
PercentsForm f = new PercentsForm();
if (f.ShowDialog("Завершённость работы над ошибкой", Current.getBugReport().percentage))
return super.canStart("percentage", f.Result);
return false;
}
@Override
protected boolean canUpdate() {
return Current.getAccount().ExtendedCheckAccessRights(target, Log);
}
}