Пример #1
0
  /** Unregisters all the listeners registered by this SoughtGraphPlugin. */
  protected void unregisterListeners() {
    SeekConnection conn = (SeekConnection) getConn();

    soughtGraph.removeSeekSelectionListener(this);
    conn.getSeekListenerManager().removeSeekListener(this); // Just in case.
    getConn().getListenerManager().removeConnectionListener(this);
  }
Пример #2
0
  /** Gets called when the seek graph container is made invisible. */
  public void pluginUIHidden(PluginUIEvent evt) {
    soughtGraph.removeAllSeeks();

    SeekConnection conn = (SeekConnection) getConn();
    conn.getSeekListenerManager().removeSeekListener(this);
  }
Пример #3
0
 /** Remove all seeks on disconnection. This just seems to make more sense than leaving them on. */
 public void connectionLost(Connection conn) {
   soughtGraph.removeAllSeeks();
 }
Пример #4
0
 /** SeekListener implementation. Gets called when a seek is removed. */
 public void seekRemoved(SeekEvent evt) {
   soughtGraph.removeSeek(evt.getSeek());
 }
Пример #5
0
 /** SeekListener implementation. Gets called when a seek is added. */
 public void seekAdded(SeekEvent evt) {
   soughtGraph.addSeek(evt.getSeek());
 }
Пример #6
0
 /** Registers the necessary listeners. */
 protected void registerListeners() {
   soughtGraph.addSeekSelectionListener(this);
   getConn().getListenerManager().addConnectionListener(this);
 }