рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Makefile.UI.MakefilePreviewForm;
|
||||
import _VisualDVM.ProjectData.Project.db_project_info;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
@@ -20,15 +21,15 @@ public class ShowMakefilePreview extends Pass<db_project_info> {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) {
|
||||
if (Current_.Check(Log, Current.Project)) {
|
||||
target = Current.getProject();
|
||||
return Current_.Check(Log, Current.Makefile);
|
||||
if (Global.mainModule.Check(Log, Current.Project, Current.Makefile)) {
|
||||
target = Global.mainModule.getProject();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
new MakefilePreviewForm().ShowDialog("Предпросмотр мейкфайла для текущего проекта",
|
||||
Current.getMakefile().Generate(target));
|
||||
Global.mainModule.getMakefile().Generate(target));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user