Package jetbrains.communicator.core

Examples of jetbrains.communicator.core.EventVisitor


  public static void testSendCodePointer_Functional(BaseTestCase testCase, User self) {
    final String[] log = new String[]{""};
    testCase.getBroadcaster().addListener(new IDEtalkAdapter(){
      @Override
      public void afterChange(IDEtalkEvent event) {
        event.accept(new EventVisitor(){
          @Override public void visitCodePointerEvent(CodePointerEvent event) {
            log[0] += event.getRemoteUser()+ ' ';
            log[0] += event.getComment();
            log[0] += event.getCodePointer().toString();
            log[0] += event.getFile().toString();
View Full Code Here


    final String[] log = new String[]{""};
    final long[] whenSent = new long[1];
    testCase.getBroadcaster().addListener(new IDEtalkAdapter() {
      @Override
      public void afterChange(IDEtalkEvent event) {
        event.accept(new EventVisitor() {
          @Override public void visitMessageEvent(MessageEvent event) {
            super.visitMessageEvent(event);
            log[0] += event.getRemoteUser() + ' ' + event.getMessage();
            if (event.getWhen().getTime() - whenSent[0] < 150) {
              log[0] += " timingOK";
View Full Code Here

  private void setupIDEtalkListener() {
    myListener = new IDEtalkAdapter() {
      @Override
      public void afterChange(IDEtalkEvent event) {
        event.accept(new EventVisitor(){
          @Override public void visitSettingsChanged(SettingsChanged settingsChanged) {
            updateKeyBindings();
          }
        });
      }
View Full Code Here

    public void dispose() {
      myBroadcaster.removeListener(this);
    }

    public void afterChange(IDEtalkEvent event) {
      event.accept(new EventVisitor(){
        @SuppressWarnings({"RefusedBequest"})
        @Override public void visitUserRemoved(UserEvent.Removed event) {
          removeUser(event.getUser());
        }
      });
View Full Code Here

    readAll();

    mySaver = new IDEtalkAdapter() {
      public void afterChange(IDEtalkEvent event) {
        event.accept(new EventVisitor(){
          @Override public void visitUserAdded(UserEvent.Added event) {
            super.visitUserAdded(event);
            saveAll();
          }
View Full Code Here

    }

    @Override
    public void afterChange(IDEtalkEvent event) {
      //noinspection RefusedBequest
      event.accept(new EventVisitor() {
        @Override
        public void visitTransportEvent(TransportEvent event) {
          User user = event.createUser(myUserModel);
          addPendingMessage(user, myFacade.createLocalMessageForIncomingEvent(event));
        }
View Full Code Here

    }
    return false;
  }

  private void processEvent(final JabberFacade jabberFacade, final RosterEntry userEntry) {
    myEvent.accept(new EventVisitor(){
      @Override public void visitUserUpdated(UserEvent.Updated event) {
        try {
          if (GROUP.equals(event.getPropertyName())) {
            changeUsersGroup(event, jabberFacade.getConnection().getRoster(), userEntry);
          } else if (DISPLAY_NAME.equals(event.getPropertyName())) {
View Full Code Here

    myBroadcaster = myUserModel.getBroadcaster();
    myTree = tree;

    myListener = new IDEtalkAdapter() {
      public void afterChange(IDEtalkEvent event) {
        event.accept(new EventVisitor(){

          @Override public void visitUserRemoved(UserEvent.Removed event) {
            updateTree(null);
            UIUtil.invokeLater(new Runnable() {
              public void run() {
View Full Code Here

    public void dispose() {
      myBroadcaster.removeListener(this);
    }

    public void afterChange(IDEtalkEvent event) {
      event.accept(new EventVisitor(){
        @Override public void visitUserOnline(UserEvent.Online online) {
          triggerDelivery();
        }
      });
    }
View Full Code Here

    myTree.setModel(new UsersTreeModel(myTree, userModel, myLocalMessageDispatcher));

    myExpandTreeNodeListener = new IDEtalkAdapter() {
      @Override
      public void afterChange(IDEtalkEvent event) {
        event.accept(new EventVisitor(){

          @SuppressWarnings({"RefusedBequest"})
          @Override
          public void visitTransportEvent(TransportEvent event) {
            User user = event.createUser(myUserModel);
View Full Code Here

TOP

Related Classes of jetbrains.communicator.core.EventVisitor

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.