Перенос.

This commit is contained in:
2023-09-17 22:13:42 +03:00
parent dd2e0ca7e0
commit 629d8b8477
1239 changed files with 61161 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
package Visual_DVM_2021.Passes.All;
import Common.Current;
import Common.UI.Windows.Dialog.PercentsForm;
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 (!Current.Check(Log, Current.BugReport))
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);
}
}