File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
src/main/java/com/ge/predix/mobile Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 44import com .ge .predix .mobile .core .MobileManager ;
55import com .ge .predix .mobile .core .PredixMobileConfiguration ;
66import com .ge .predix .mobile .core .ViewInterface ;
7+ import com .ge .predix .mobile .core .notifications .InitialReplicationCompleteNotification ;
78import com .ge .predix .mobile .exceptions .InitializationException ;
89import com .ge .predix .mobile .platform .PlatformContext ;
910import com .ge .predix .mobile .platform .WindowView ;
11+ import com .google .common .eventbus .Subscribe ;
1012import de .codecentric .centerdevice .MenuToolkit ;
1113import javafx .application .Application ;
1214import javafx .application .Platform ;
@@ -158,12 +160,18 @@ public WindowView getWindowView() {
158160 loadProxyIfNeeded ();
159161 try {
160162 mobileManager .start ();
163+ mobileManager .getNotificationRegistrar ().registerListener (this );
161164 } catch (InitializationException e ) {
162165 e .printStackTrace ();
163166 }
164167 }).start ();
165168 }
166169
170+ @ Subscribe
171+ public void listenForInitialReplicationComplete (InitialReplicationCompleteNotification notification ) {
172+ System .out .println ("\u001B [33m" + "Received replication complete notification" + "\u001B [0m" );
173+ }
174+
167175 private void loadProxyIfNeeded () {
168176 setProxyValue ("http.proxyHost" , "http.proxyPort" );
169177 setProxyValue ("https.proxyHost" , "https.proxyPort" );
Original file line number Diff line number Diff line change 99 */
1010public class ConsoleLogBridge {
1111 public void log (String text ) {
12- System .out .println (text );
12+ System .out .println (" \u001B [33m" + text + " \u001B [0m" );
1313 }
1414}
You can’t perform that action at this time.
0 commit comments