JMenu dis_cols = new JMenu(
MessageManager.getString("action.displayed_columns"));
final IdColumns id_cols = ap.av.getIdColumns();
+ id_cols.updateTypeList();
for (final IdColumn col : id_cols.getIdColumns())
{
JMenuItem col_entry = new JCheckBoxMenuItem(col.getLabel(),
import jalview.api.DBRefEntryI;
import jalview.datamodel.AlignmentI;
+import jalview.datamodel.DBRefEntry;
import jalview.datamodel.SequenceFeature;
import jalview.datamodel.SequenceI;
import jalview.datamodel.features.SequenceFeaturesI;
updateListForFeature(sf);
}
}
- for (DBRefEntryI dbr : seq.getDBRefs())
+ if (seq.getDBRefs() != null)
{
- updateListForDbxref(dbr);
+ for (DBRefEntryI dbr : seq.getDBRefs())
+ {
+ updateListForDbxref(dbr);
+ }
}
}
}
}
if (col.DbRefName != null)
{
+ List<DBRefEntryI> refs = new ArrayList<DBRefEntryI>();
for (DBRefEntryI dbr : dseq.getDBRefs())
{
if (dbr.getSource().equals(col.DbRefName))
{
- return new ColumnCell(dbr.getAccessionId(), Color.black,
- Color.white);
+ refs.add(dbr);
}
}
+ if (refs.size()==0)
+ {
+ return null;
+ }
+ StringBuilder dbr = new StringBuilder();
+ dbr.append(refs.size());
+ for (DBRefEntryI ref : refs)
+ {
+ dbr.append(" "+ref.getAccessionId());
+ }
+ return new ColumnCell(dbr.toString(), Color.black, Color.white);
+
}
}
// no value for this sequence in given column