no message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -10,15 +10,15 @@ import _VisualDVM.GlobalData.Tasks.TaskState;
|
||||
import _VisualDVM.GlobalData.User.UserState;
|
||||
import _VisualDVM.ProjectData.LanguageName;
|
||||
import _VisualDVM.ProjectData.Project.db_project_info;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
import Visual_DVM_2021.Passes.PassException;
|
||||
import Visual_DVM_2021.Passes.Pass_2021;
|
||||
public class Compile extends Pass_2021<db_project_info> {
|
||||
Pass_2021 subpass = null;
|
||||
import Visual_DVM_2021.Passes.Pass;
|
||||
public class Compile extends Pass<db_project_info> {
|
||||
Pass subpass = null;
|
||||
CompilationTask compilationTask = null;
|
||||
@Override
|
||||
protected PassCode_2021 necessary() {
|
||||
return Current.getProject().languageName.equals(LanguageName.fortran) ? PassCode_2021.SPF_ParseFilesWithOrder : null;
|
||||
protected PassCode necessary() {
|
||||
return Current.getProject().languageName.equals(LanguageName.fortran) ? PassCode.SPF_ParseFilesWithOrder : null;
|
||||
}
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
@@ -30,7 +30,7 @@ public class Compile extends Pass_2021<db_project_info> {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) {
|
||||
if (CurrentAnchestor.Check(Log, Current.Project, Current.Machine, Current.User, Current.Makefile)) {
|
||||
if (Current_.Check(Log, Current.Project, Current.Machine, Current.User, Current.Makefile)) {
|
||||
target = Current.getProject();
|
||||
subpass = null;
|
||||
compilationTask = null;
|
||||
@@ -67,15 +67,15 @@ public class Compile extends Pass_2021<db_project_info> {
|
||||
switch (Current.getMachine().type) {
|
||||
case Local:
|
||||
if (CommonUtils.isWindows()) {
|
||||
subpass = passes.get(PassCode_2021.WindowsLocalCompilation);
|
||||
subpass = passes.get(PassCode.WindowsLocalCompilation);
|
||||
} else
|
||||
subpass = passes.get(PassCode_2021.LinuxLocalCompilation);
|
||||
subpass = passes.get(PassCode.LinuxLocalCompilation);
|
||||
break;
|
||||
case Undefined:
|
||||
case MVS_cluster:
|
||||
throw new PassException("Компиляция не реализована для типа машины " + CommonUtils.DQuotes(Current.getMachine().type));
|
||||
default:
|
||||
subpass = passes.get(PassCode_2021.RemoteCompilation);
|
||||
subpass = passes.get(PassCode.RemoteCompilation);
|
||||
break;
|
||||
}
|
||||
subpass.Do(Current.getCompilationTask(), Current.getProject());
|
||||
|
||||
Reference in New Issue
Block a user