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

28 lines
939 B
Java
Raw Normal View History

package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common_old.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 {
if (!CurrentAnchestor.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);
}
}