no message

This commit is contained in:
2024-10-14 12:34:36 +03:00
parent 24631268af
commit f5538bc220
5 changed files with 22 additions and 21 deletions

View File

@@ -89,9 +89,6 @@ public class MainModule extends MainModule_<GlobalDatabase> {
public boolean HasRunTask() {
return get(Current.RunTask) != null;
}
public boolean HasPassForm() {
return get(Current.PassForm) != null;
}
public boolean HasProjectView() {
return get(Current.ProjectView) != null;
}
@@ -210,9 +207,6 @@ public class MainModule extends MainModule_<GlobalDatabase> {
public boolean HasBugReport() {
return get(Current.BugReport) != null;
}
public PassForm getPassForm() {
return (PassForm) get(Current.PassForm);
}
public ParallelRegion getParallelRegion() {
return (ParallelRegion) get(Current.ParallelRegion);
}

View File

@@ -1,4 +1,5 @@
package _VisualDVM.Repository.Component.Sapfor;
import Common.MainModule_;
import Common.Utils.Utils_;
import _VisualDVM.Current;
import _VisualDVM.Global;
@@ -29,8 +30,8 @@ public class MessagesServer {
InputStreamReader(client.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
if (Global.mainModule.HasPassForm())
Global.mainModule.getPassForm().Result.ShowSapforMessage(line);
if (MainModule_.object.HasPassForm())
MainModule_.object.getPassForm().Result.ShowSapforMessage(line);
}
} catch (Exception ex) {
// UI.Print(DebugPrintLevel.MessagesServer, "соединение сброшено!");