рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -42,8 +42,8 @@ public class DVMConvertProject extends ComponentsRepositoryPass<db_project_info>
|
||||
version = null;
|
||||
badFiles = "";
|
||||
//--
|
||||
if (Current_.Check(Log, Current.Project)) {
|
||||
target = Current.getProject();
|
||||
if (Global.mainModule.Check(Log, Current.Project)) {
|
||||
target = Global.mainModule.getProject();
|
||||
programsToConvert = target.getPrograms().get(target.languageName);
|
||||
programsNames = new Vector<>();
|
||||
if (programsToConvert.size() > 100) {
|
||||
@@ -136,10 +136,10 @@ public class DVMConvertProject extends ComponentsRepositoryPass<db_project_info>
|
||||
@Override
|
||||
protected void showFinish() throws Exception {
|
||||
UI.getMainWindow().getProjectWindow().RefreshProjectTreeAndMessages();
|
||||
if (Current.HasFile()) {
|
||||
Current.getFile().form.ShowCompilationOutput();
|
||||
if (Global.mainModule.HasFile()) {
|
||||
Global.mainModule.getFile().form.ShowCompilationOutput();
|
||||
if (!output.isEmpty())
|
||||
Current.getFile().form.FocusCompilationOut();
|
||||
Global.mainModule.getFile().form.FocusCompilationOut();
|
||||
}
|
||||
if (!badFiles.isEmpty())
|
||||
UI_.Error(badFiles);
|
||||
|
||||
Reference in New Issue
Block a user