예제 #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);
 }