Package connection

Examples of connection.ConnectionSettings


   
    ArrayList<String> performOnConnect = new ArrayList<>();
    for (String cmd : textPerform.getText().split(Message.NEW_LINE))
      performOnConnect.add(cmd);
   
    ConnectionSettings newCS = new ConnectionSettings(textServer.getText(),
                    textNick.getText());
   
    if(!textConnName.getText().isEmpty())
      newCS.setConnectionName(textConnName.getText());
   
    newCS.setPort(Integer.parseInt(textPort.getText()));
    newCS.setServerPassword(textServPass.getText());
    newCS.setSsl(btnUseSsl.getSelection());
    newCS.setConnectOnStart(btnConnectOnStartup.getSelection());
    newCS.setNickPassword(textNickPass.getText());
    if(!textIdent.getText().isEmpty()) 
      newCS.setIdent(textIdent.getText());
    newCS.setAutoJoin(autoJoin);
    newCS.setPerformOnConnect(performOnConnect);
   
    table.getItem(table.getSelectionIndex()).setData(newCS);
    table.getItem(table.getSelectionIndex()).setText(
        new String[] { newCS.getConnectionName(),
            newCS.getServer(), newCS.getNickname() });
    saveTable();
  }
View Full Code Here


   * Clear blanks.
   */
  private void clearBlanks() {
    TableItem[] items = table.getItems();
    for (int k = items.length - 1; k >= 0; k--) {
      ConnectionSettings cs = ((ConnectionSettings)items[k].getData());
      if (cs == null || cs.getNickname().isEmpty() &&
          cs.getServer().isEmpty() && cs.getConnectionName().isEmpty())
        table.remove(k);
    }
  }
View Full Code Here

    boolean completed = checkIfCompleted();
    if (table.getSelectionCount() == 1 && completed) {
      // save stuff
      saveEntry();
      //connect
      ConnectionSettings selected = (ConnectionSettings) table.getItem(
          table.getSelectionIndex()).getData();
      new Connection(RoomManager.getMain().getContainer(), SWT.NONE,
          selected);
    }
    else if(!completed)
View Full Code Here

TOP

Related Classes of connection.ConnectionSettings

Copyright © 2018 www.massapicom. 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.