Example #1
0
  /**
   * @param remoteProjectNames since the <code>projectID</code> is no longer the name of the project
   *     this mapping is necessary to display the names on host/inviter side instead of ugly random
   *     numbers projectID => projectName
   */
  public EnterProjectNamePage(
      ISarosSession session,
      IConnectionManager connectionManager,
      PreferenceUtils preferenceUtils,
      List<FileList> fileLists,
      JID peer,
      Map<String, String> remoteProjectNames) {

    super(Messages.EnterProjectNamePage_title);
    this.session = session;
    this.connectionManager = connectionManager;
    this.preferenceUtils = preferenceUtils;
    this.peer = peer;
    this.remoteProjectNames = remoteProjectNames;

    // TODO show per project
    for (FileList fileList : fileLists)
      unsupportedCharsets.addAll(getUnsupportedCharsets(fileList.getEncodings()));

    this.fileLists = fileLists;

    setPageComplete(false);
    setTitle(Messages.EnterProjectNamePage_title2);
  }