+ alignPanel.paintAlignment(false, false);
+ }
+
+ /**
+ * Build and show the popup-menu at the right-click mouse position
+ *
+ * @param e
+ */
+ void showPopupMenu(MouseEvent e, MousePos pos)
+ {
+ Sequence sq = (Sequence) av.getAlignment().getSequenceAt(pos.seqIndex);
+
+ /*
+ * build a new links menu based on the current links
+ * and any non-positional features
+ */
+ List<String> nlinks = Preferences.sequenceUrlLinks.getLinksForMenu();
+ List<SequenceFeature> features = sq.getFeatures().getNonPositionalFeatures();
+ for (SequenceFeature sf : features)
+ {
+ if (sf.links != null)
+ {
+ nlinks.addAll(sf.links);
+ }
+ }
+
+ PopupMenu pop = new PopupMenu(alignPanel, sq, features,
+ Preferences.getGroupURLLinks());
+ pop.show(this, e.getX(), e.getY());