{
FeatureMatcherSetI theFilter = (FeatureMatcherSetI) filter;
setOpaque(true);
- String asText = theFilter.toString();
setBackground(tbl.getBackground());
- this.setText(asText);
this.setIcon(null);
+ if (theFilter != null)
+ {
+ String asText = theFilter.toString();
+ this.setText(asText);
+ }
+
if (isSelected)
{
if (selectedBorder == null)
private static final int MAX_REFS_PER_SOURCE = 4;
- private static final int MAX_SOURCES = 40;
+ private static final int MAX_SOURCES = 5;
private static String linkImageURL;
{
return 1;
}
+
String s1 = ref1.getSource();
String s2 = ref2.getSource();
boolean s1Primary = DBRefSource.isPrimarySource(s1);
boolean s2Primary = DBRefSource.isPrimarySource(s2);
+ if (ref1.isCanonical() && !ref2.isCanonical())
+ {
+ return -1;
+ }
+ if (!ref1.isCanonical() && ref2.isCanonical())
+ {
+ return 1;
+ }
if (s1Primary && !s2Primary)
{
return -1;
assertTrue(report.startsWith("<i>\n" + "<br/>\n" + "UNIPROT P30410,\n"
+ " P30411,\n" + " P30412,\n" + " P30413,...<br/>\n"
+ "PDB0 3iu1<br/>\n" + "PDB1 3iu1<br/>"));
- assertTrue(report.endsWith("PDB5 3iu1<br/>\n" + "PDB6 3iu1<br/>\n"
- + "PDB7 3iu1<br/>\n" + "PDB8,...<br/>\n"
+ assertTrue(report.endsWith("PDB3 3iu1<br/>\n"+"PDB4,...<br/>\n"
+ "(Output Sequence Details to list all database references)\n"
+ "</i>"));
}