File tree Expand file tree Collapse file tree 4 files changed +23
-7
lines changed
main/java/com/openfin/desktop/demo
test/java/com/openfin/desktop Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 1+ # Version 7.1.3
2+ ## New Features
3+ * Add support for the new notification service
4+
15# Version 7.1.2
26## Bug Fixes
37
Original file line number Diff line number Diff line change @@ -24,9 +24,15 @@ public class ChannelExample implements DesktopStateListener {
2424
2525 private DesktopConnection desktopConnection ;
2626
27+ private static String channelType ; // client or provider, if not set, both
28+
2729 public ChannelExample () {
2830 try {
29- desktopConnection = new DesktopConnection ("ChannelExample" );
31+ StringBuilder sb = new StringBuilder ("ChannelExample" );
32+ if (channelType != null ) {
33+ sb .append (channelType );
34+ }
35+ desktopConnection = new DesktopConnection (sb .toString ());
3036 String desktopVersion = java .lang .System .getProperty ("com.openfin.demo.runtime.version" , "stable" );
3137 RuntimeConfiguration configuration = new RuntimeConfiguration ();
3238 configuration .setRuntimeVersion (desktopVersion );
@@ -148,8 +154,12 @@ public void onError(Ack ack) {
148154
149155 @ Override
150156 public void onReady () {
151- createChannelProvider ();
152- createChannelClient ();
157+ if ("provider" .equals (channelType ) || channelType == null ) {
158+ createChannelProvider ();
159+ }
160+ if ("client" .equals (channelType ) || channelType == null ) {
161+ createChannelClient ();
162+ }
153163 }
154164
155165 @ Override
@@ -173,7 +183,9 @@ public void onOutgoingMessage(String message) {
173183 }
174184
175185 public static void main (String [] args ) {
176-
186+ if (args .length > 0 ) {
187+ channelType = args [0 ];
188+ }
177189 try {
178190 new ChannelExample ();
179191 latch .await ();
Original file line number Diff line number Diff line change @@ -520,12 +520,12 @@ public void onError(String reason) {
520520
521521 @ Override
522522 public void onMessage (String message ) {
523- updateMessagePanel ("-->FROM DESKTOP-" + message );
523+ // updateMessagePanel("-->FROM DESKTOP-" + message);
524524 }
525525
526526 @ Override
527527 public void onOutgoingMessage (String message ) {
528- updateMessagePanel ("<--TO DESKTOP-" + message );
528+ // updateMessagePanel("<--TO DESKTOP-" + message);
529529 }
530530 };
531531
Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ public void navigateBack() throws Exception {
489489 @ Override
490490 public void onSuccess (Ack ack ) {
491491 if (ack .isSuccessful ()) {
492- window .navigate ("https://www.google.com" , new AckListener () {
492+ window .navigate (guest_url , new AckListener () {
493493 @ Override
494494 public void onSuccess (Ack ack ) {
495495 if (ack .isSuccessful ()) {
You can’t perform that action at this time.
0 commit comments