Package com.intellij.util.messages

Examples of com.intellij.util.messages.MessageBusConnection.disconnect()


    public static void unsubscribe(Object ... handlers) {
        EventManager eventManager = EventManager.getInstance();
        for (Object handler : handlers) {
            MessageBusConnection connection = eventManager.connectionCache.remove(handler);
            if (connection != null) {
                connection.disconnect();
            }
        }
    }

    @NonNls
View Full Code Here


                    connectionsByProject.put(project, connection);
                }

        @Override public void projectClosed(Project project) {
          MessageBusConnection connection = connectionsByProject.remove(project);
          if (connection != null) connection.disconnect();
        }
      });
      return this;
    }
View Full Code Here

  }

  public void remove(@NotNull T listener) {
    final MessageBusConnection connection = myListenerToConnectionMap.remove(listener);
    if (connection != null) {
      connection.disconnect();
    }
  }
}
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.