@Override public synchronized void stateChange ( final org.eclipse.scada.core.client.Connection connection, final ConnectionState state, final Throwable error ) { switch ( state ) { case BOUND: if ( !this.connected ) { resyncAllItems (); this.connected = true; } break; default: if ( this.connected ) { disconnectAllItems (); this.connected = false; } break; } }
@Override public synchronized void stateChange ( final org.eclipse.scada.core.client.Connection connection, final ConnectionState state, final Throwable error ) { switch ( state ) { case BOUND: if ( !this.connected ) { resyncAllItems (); this.connected = true; } break; default: if ( this.connected ) { disconnectAllItems (); this.connected = false; } break; } }