Ejemplo n.º 1
0
  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);
  }
Ejemplo n.º 2
0
  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();
  }