コード例 #1
0
        @Override
        public void run() {
          String[] joinOptions;
          String subject = null;
          String nickName = null;

          nickName =
              ConfigurationUtils.getChatRoomProperty(
                  chatRoomWrapper.getParentProvider().getProtocolProvider(),
                  chatRoomWrapper.getChatRoomID(),
                  "userNickName");
          if (nickName == null) {
            joinOptions =
                ChatRoomJoinOptionsDialog.getJoinOptions(
                    chatRoomWrapper.getParentProvider().getProtocolProvider(),
                    chatRoomWrapper.getChatRoomID(),
                    MUCActivator.getMUCService()
                        .getDefaultNickname(
                            chatRoomWrapper.getParentProvider().getProtocolProvider()));
            nickName = joinOptions[0];
            subject = joinOptions[1];
          }

          if (nickName != null)
            MUCActivator.getMUCService().joinChatRoom(chatRoomWrapper, nickName, null, subject);
        }
コード例 #2
0
 @Override
 public void run() {
   ChatRoomJoinOptionsDialog.getJoinOptions(
       true,
       chatRoomWrapper.getParentProvider().getProtocolProvider(),
       chatRoomWrapper.getChatRoomID(),
       MUCActivator.getMUCService()
           .getDefaultNickname(chatRoomWrapper.getParentProvider().getProtocolProvider()));
 }
コード例 #3
0
 @Override
 public void run() {
   String[] joinOptions;
   joinOptions =
       ChatRoomJoinOptionsDialog.getJoinOptions(
           chatRoomWrapper.getParentProvider().getProtocolProvider(),
           chatRoomWrapper.getChatRoomID(),
           MUCActivator.getMUCService()
               .getDefaultNickname(chatRoomWrapper.getParentProvider().getProtocolProvider()));
   if (joinOptions[0] == null) return;
   MUCActivator.getMUCService()
       .joinChatRoom(chatRoomWrapper, joinOptions[0], null, joinOptions[1]);
 }