рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -22,11 +22,11 @@ public abstract class StartTestingPackage<P extends TestingPackage> extends Publ
|
||||
protected abstract Current getCurrentName();
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (!Current.getAccount().CheckRegistered(Log)) {
|
||||
if (!Global.mainModule.getAccount().CheckRegistered(Log)) {
|
||||
return false;
|
||||
}
|
||||
if (Current_.Check(Log, getCurrentName())) {
|
||||
target = (P) Current_.get(getCurrentName());
|
||||
if (Global.mainModule.Check(Log, getCurrentName())) {
|
||||
target = (P) Global.mainModule.get(getCurrentName());
|
||||
//-
|
||||
if (!target.state.equals(TasksPackageState.Draft)) {
|
||||
Log.Writeln_("Возможно запустить только пакет, готовящийся к публикации!");
|
||||
|
||||
Reference in New Issue
Block a user