рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -49,7 +49,7 @@ public class Precompilation extends Pass<db_project_info> {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = Current.getProject();
|
||||
target = Global.mainModule.getProject();
|
||||
if (Utils_.isWindows()) {
|
||||
//--
|
||||
makepath = Global.mainModule.getDb().settings.get(SettingName.LocalMakePathWindows).toString();
|
||||
@@ -134,9 +134,9 @@ public class Precompilation extends Pass<db_project_info> {
|
||||
@Override
|
||||
protected void showPreparation() throws Exception {
|
||||
UI.getMainWindow().getProjectWindow().ShowNoAnalyses();
|
||||
if (Current.HasFile()) {
|
||||
Current.getFile().form.ShowNoMessages();
|
||||
Current.getFile().form.ShowNoAnalyses();
|
||||
if (Global.mainModule.HasFile()) {
|
||||
Global.mainModule.getFile().form.ShowNoMessages();
|
||||
Global.mainModule.getFile().form.ShowNoAnalyses();
|
||||
}
|
||||
}
|
||||
protected static void unpackPrecompilationMessages(db_project_info target, String text) throws Exception {
|
||||
@@ -241,9 +241,9 @@ public class Precompilation extends Pass<db_project_info> {
|
||||
@Override
|
||||
protected void showFinish() throws Exception {
|
||||
UI.getMainWindow().getProjectWindow().RefreshProjectTreeAndMessages();
|
||||
if (Current.HasFile()) {
|
||||
Current.getFile().form.ShowCompilationOutput();
|
||||
Current.getFile().form.FocusCompilationOut();
|
||||
if (Global.mainModule.HasFile()) {
|
||||
Global.mainModule.getFile().form.ShowCompilationOutput();
|
||||
Global.mainModule.getFile().form.FocusCompilationOut();
|
||||
}
|
||||
}
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user