рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -2,6 +2,7 @@ package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Visual.Windows.Dialog.PercentsForm;
|
||||
import _VisualDVM.Global;
|
||||
public class UpdateBugReportProgress extends UpdateBugReportField {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
@@ -13,15 +14,15 @@ public class UpdateBugReportProgress extends UpdateBugReportField {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (!Current_.Check(Log, Current.BugReport))
|
||||
if (!Global.mainModule.Check(Log, Current.BugReport))
|
||||
return false;
|
||||
PercentsForm f = new PercentsForm();
|
||||
if (f.ShowDialog("Завершённость работы над ошибкой", Current.getBugReport().percentage))
|
||||
if (f.ShowDialog("Завершённость работы над ошибкой", Global.mainModule.getBugReport().percentage))
|
||||
return super.canStart("percentage", f.Result);
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
protected boolean canUpdate() {
|
||||
return Current.getAccount().ExtendedCheckAccessRights(target, Log);
|
||||
return Global.mainModule.getAccount().ExtendedCheckAccessRights(target, Log);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user