Examples of GOIMAccount


Examples of net.sphene.goim.rcp.beans.GOIMAccount

    this.changeStatusContribution = changeStatusContribution;
    this.status = status;
  }
 
  public void run() {
    GOIMAccount account = changeStatusContribution.getAccount();
    Presence.Mode mode = statusSmackPresenceMap.get(status);
    Presence.Type type = Presence.Type.UNAVAILABLE;
    if(mode != null) {
      type = Presence.Type.AVAILABLE;
    }
View Full Code Here

Examples of net.sphene.goim.rcp.beans.GOIMAccount

              //accMenu.getItems();
  //            accMenu.setVisible(true);
              copyMenu(accMenu,menu);
            } else {
              for(GOIMAccount account : accountList) {
                final GOIMAccount acc = account;
                MenuItem accountItem = new MenuItem(menu,SWT.CASCADE);
                accountItem.setText(account.name + " (" + account.jid + ")");
               
                final Menu accountMenu = new Menu(accountItem);
                accountItem.setMenu(accountMenu);
View Full Code Here

Examples of net.sphene.goim.rcp.beans.GOIMAccount

    createButton.setLayoutData(gridData1);
    createButton
        .addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
          public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
            GOIMAccountList accountList = GOIMPlugin.getAccountList();
            GOIMAccount account = new GOIMAccount();
            account.name = name.getText();
            if(checkBoxRegisterNewUser.getSelection()) {
              sShell.close();
              new GOIMPreferencePageCreateUser(parent,account);
            } else {
View Full Code Here

Examples of net.sphene.goim.rcp.beans.GOIMAccount

    this.setLayout(new RowLayout(SWT.VERTICAL));
    Button button = new Button(this,SWT.PUSH);
    button.setText("Manage all Accounts");
    Listener listener = new Listener() {
      public void handleEvent(Event event) {
        GOIMAccount account = (GOIMAccount)event.widget.getData("account");
        if(account == null) container.initWithAccountList(GOIMPlugin.getPreferenceObject(GOIMAccountList.class));
        else container.initWithAccount(account);
      }
    };
    button.addListener(SWT.Selection,listener);
View Full Code Here

Examples of net.sphene.goim.rcp.beans.GOIMAccount

          case GOIMAbstractListEvent.TYPE_DEL:
            delAccountSection((GOIMAccount)event.source);
            form.getBody().layout();
            break;
          case GOIMAbstractListEvent.TYPE_EDIT:
            GOIMAccount acc = (GOIMAccount)event.source;
            Section sec = sections.get(acc);
            sec.setText(acc.name);
            sec.setDescription(acc.jid);
            form.getBody().layout();
            break;
View Full Code Here

Examples of net.sphene.goim.rcp.beans.GOIMAccount

    String accountName = wizardCreateAccount.txtAccountName.getText();
    accountList = GOIMPlugin.getAccountList();
    if(accountList.getByName(accountName) != null) {
      throw new RuntimeException("Account name already exists. Choose a different one.");
    }
    final GOIMAccount account = new GOIMAccount();
    account.name = accountName;
    account.jid = wizardConfigureJabberAccount.txtJabberId.getText();
    if(wizardConfigureJabberAccount.useCustomHost.getSelection()) {
      account.customHost = wizardConfigureJabberAccount.txtCustomHost.getText();
      account.customPort = Integer.parseInt(wizardConfigureJabberAccount.txtCustomPort.getText());
View Full Code Here

Examples of net.sphene.goim.rcp.beans.GOIMAccount

    this.setLayout(new RowLayout(SWT.VERTICAL));
    Button button = new Button(this, SWT.PUSH);
    button.setText("Manage all Accounts");
    Listener listener = new Listener() {
      public void handleEvent(Event event) {
        GOIMAccount account = (GOIMAccount) event.widget
            .getData("account");
        if (account == null)
          container.initWithAccountList(GOIMPlugin
              .getPreferenceObject(GOIMAccountList.class));
        else
View Full Code Here

Examples of net.sphene.goim.rcp.beans.GOIMAccount

    public void mouseDoubleClick(MouseEvent e) {
      TreeItem[] items = contactList.getSelection();
      if(items.length < 1) return;
      TreeItem item = items[0];
      RosterEntry entry = (RosterEntry)item.getData("entry");
      GOIMAccount account = (GOIMAccount)item.getData("account");
      if(entry == null) return;
      account.chatWindowExtensionManager.openChatWindow(entry.getUser(),true);
    }
View Full Code Here

Examples of net.sphene.goim.rcp.beans.GOIMAccount

        if(getActiveAccount() == null) {
          contextMenu.setVisible(true);
          return;
        }
        RosterEntry entry = (RosterEntry) item.getData("entry");
        GOIMAccount account = (GOIMAccount) item.getData("account");
        if(entry == null)
          contextMenu.setVisible(true);
        else {
          entryMenu.open(account,entry,null);
        }
View Full Code Here

Examples of net.sphene.goim.rcp.beans.GOIMAccount

//        dragLastPoint.x = e.x;
//        dragLastPoint.y = e.y;
      } else {
        TreeItem item = contactList.getItem(new Point(e.x,e.y));
        if(item != null) {
          GOIMAccount account = (GOIMAccount)item.getData("account");
          RosterEntry entry = (RosterEntry)item.getData("entry");
          if(entry != null) {
            String toolTipText = getToolTipTextForEntry(account,entry);
            if(!toolTipText.equals(contactList.getToolTipText())) {
              contactList.setToolTipText(toolTipText);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.