final ConnectionRequestTracker tracker = new ConnectionRequestTracker ( Activator.getBundleContext (), new ConnectionRequest ( null, connectionInformation, 10 * 1000, true ), null );
final ConnectionRequestTracker tracker = new ConnectionRequestTracker ( Activator.getBundleContext (), new ConnectionRequest ( null, connectionInformation, 10 * 1000, true ), null );
public AbstractItemHolder ( final BundleContext context, final Item item, final HolderListener holderListener ) { this.context = context; this.item = item; this.holderListener = holderListener; switch ( item.getType () ) { case ID: this.tracker = new ConnectionIdTracker ( this.context, item.getConnectionString (), new ConnectionTracker.Listener () { @Override public void setConnection ( final org.eclipse.scada.core.connection.provider.ConnectionService connectionService ) { AbstractItemHolder.this.setConnection ( (ConnectionService)connectionService ); } } ); break; case URI: default: this.tracker = new ConnectionRequestTracker ( this.context, createRequest (), new ConnectionTracker.Listener () { @Override public void setConnection ( final org.eclipse.scada.core.connection.provider.ConnectionService connectionService ) { AbstractItemHolder.this.setConnection ( (ConnectionService)connectionService ); } } ); break; } }
final ConnectionRequestTracker tracker = new ConnectionRequestTracker ( Activator.getBundleContext (), new ConnectionRequest ( null, connectionInformation, 10 * 1000, true ), null );
final ConnectionRequestTracker tracker = new ConnectionRequestTracker ( Activator.getBundleContext (), new ConnectionRequest ( null, connectionInformation, 10 * 1000, true ), null );