@@ -543,7 +543,7 @@ public void eventDispatched(AWTEvent e)
543543 */
544544 public void setupFrame (Client mirthClient ) throws ClientException {
545545
546- LoginPanel login = LoginPanel .getInstance ();
546+ AbstractLoginPanel login = LoginPanelFactory .getInstance ();
547547
548548 // Initialize the send message dialog
549549 editMessageDialog = new EditMessageDialog ();
@@ -1524,7 +1524,7 @@ public void alertThrowable(Component parentComponent, Throwable t, String custom
15241524 }
15251525 mirthClient .close ();
15261526 this .dispose ();
1527- LoginPanel .getInstance ().initialize (PlatformUI .SERVER_URL , PlatformUI .CLIENT_VERSION , "" , "" );
1527+ LoginPanelFactory .getInstance ().initialize (PlatformUI .SERVER_URL , PlatformUI .CLIENT_VERSION , "" , "" );
15281528 return ;
15291529 } else if (t .getCause () != null && t .getCause () instanceof HttpHostConnectException && (StringUtils .contains (t .getCause ().getMessage (), "Connection refused" ) || StringUtils .contains (t .getCause ().getMessage (), "Host is down" ))) {
15301530 connectionError = true ;
@@ -1542,7 +1542,7 @@ public void alertThrowable(Component parentComponent, Throwable t, String custom
15421542 }
15431543 mirthClient .close ();
15441544 this .dispose ();
1545- LoginPanel .getInstance ().initialize (PlatformUI .SERVER_URL , PlatformUI .CLIENT_VERSION , "" , "" );
1545+ LoginPanelFactory .getInstance ().initialize (PlatformUI .SERVER_URL , PlatformUI .CLIENT_VERSION , "" , "" );
15461546 return ;
15471547 }
15481548 }
@@ -2292,7 +2292,7 @@ public boolean logout(boolean quit, boolean confirmFirst) {
22922292 this .dispose ();
22932293
22942294 if (!quit ) {
2295- LoginPanel .getInstance ().initialize (PlatformUI .SERVER_URL , PlatformUI .CLIENT_VERSION , "" , "" );
2295+ LoginPanelFactory .getInstance ().initialize (PlatformUI .SERVER_URL , PlatformUI .CLIENT_VERSION , "" , "" );
22962296 }
22972297
22982298 return true ;
0 commit comments