-
- int tabCount = treeTabs.getTabCount();
-
- for (int i = 0; i < tabCount; i++)
- {
- // roundabout way to select each tree because getComponentAt(i) requires
- // casting to TreePanel which doesn't work
- treeTabs.setSelectedIndex(i);
- currentTreeView = aptxFrame.getMainPanel().getCurrentTreePanel();
- currentTreeView.addMouseListener(this);
- PaintRefresher.Register(currentTreeView,
- parentAvport.getSequenceSetId());
- }
+ treeView.addMouseListener(this);
+ PaintRefresher.Register(treeView, parentAvport.getSequenceSetId());