*/
private Map<AlignmentAnnotation, String> annotationLabels;
- private boolean enableSeqAss = false;
-
private AlignmentAnnotation currentAnnotation;
/**
Vector<String> list = new Vector<String>();
int index = 1;
int[] anmap = new int[av.getAlignment().getAlignmentAnnotation().length];
+ seqAssociated.setEnabled(false);
for (int i = 0; i < av.getAlignment().getAlignmentAnnotation().length; i++)
{
AlignmentAnnotation annotation = av.getAlignment()
}
else
{
- enableSeqAss = true;
+ seqAssociated.setEnabled(true);
}
String label = annotation.label;
// add associated sequence ID if available
return selectedThresholdItem;
}
- public void modelChanged()
- {
- seqAssociated.setEnabled(enableSeqAss);
- }
-
public void ok_actionPerformed()
{
try
{
adjusting = true;
String cursel = (String) anns.getSelectedItem();
- boolean isvalid = false, isseqs = seqAssociated.isSelected();
+ boolean isvalid = false;
+ boolean isseqs = seqAssociated.isSelected();
anns.removeAllItems();
for (String anitem : getAnnotationItems(seqAssociated.isSelected()))
{
}
anns.addItem(anitem);
}
- adjusting = false;
if (isvalid)
{
anns.setSelectedItem(cursel);
anns.setSelectedIndex(0);
}
}
+ adjusting = false;
+
+ updateView();
}
protected void propagateSeqAssociatedThreshold(boolean allAnnotation,