Перенос.
This commit is contained in:
26
src/Visual_DVM_2021/Passes/All/UpdateBugReportProgress.java
Normal file
26
src/Visual_DVM_2021/Passes/All/UpdateBugReportProgress.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user