public DataTransferManager( XMPPConnectionService connectionService, IReceiver receiver, @Nullable @Socks5Transport ITransport mainTransport, @Nullable @IBBTransport ITransport fallbackTransport) { this.receiver = receiver; this.fallbackTransport = fallbackTransport; this.mainTransport = mainTransport; this.initTransports(); connectionService.addListener(this); }
public DeleteContactAction() { super(Messages.DeleteContactAction_title); setId(ACTION_ID); setToolTipText(Messages.DeleteContactAction_tooltip); IWorkbench workbench = PlatformUI.getWorkbench(); setImageDescriptor( workbench.getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_DELETE)); SarosPluginContext.initComponent(this); connectionService.addListener(connectionListener); SelectionUtils.getSelectionService().addSelectionListener(selectionListener); updateEnablement(); }