2023-11-19 02:12:44 +03:00
|
|
|
package Visual_DVM_2021.Passes.All;
|
2024-10-08 00:39:13 +03:00
|
|
|
import Common.CurrentAnchestor;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common_old.Current;
|
|
|
|
|
import Common_old.UI.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-08 00:39:13 +03:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|