X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAlignmentPanel.java;fp=src%2Fjalview%2Fgui%2FAlignmentPanel.java;h=0c052d90906941890fba414e898928c3ad837a12;hb=c1c1eaac282c848b02704e819400396fcc685ef5;hp=885d79d9e666ac4228dd0daa67380d087c590220;hpb=d5b7f6f7d5774f2a2c96351e36a59c2a5f595da6;p=jalview.git
diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java
index 885d79d..0c052d9 100644
--- a/src/jalview/gui/AlignmentPanel.java
+++ b/src/jalview/gui/AlignmentPanel.java
@@ -1556,35 +1556,37 @@ public class AlignmentPanel extends GAlignmentPanel implements
for (f = 0; f < fSize; f++)
{
- if ((features[f].getBegin() <= seq.findPosition(res))
- && (features[f].getEnd() >= seq.findPosition(res)))
+ SequenceFeature sf = features[f];
+ if ((sf.getBegin() <= seq.findPosition(res))
+ && (sf.getEnd() >= seq.findPosition(res)))
{
- if (features[f].isContactFeature())
+ if (sf.isContactFeature())
{
- if (features[f].getBegin() == seq.findPosition(res)
- || features[f].getEnd() == seq
+ if (sf.getBegin() == seq.findPosition(res)
+ || sf.getEnd() == seq
.findPosition(res))
{
- text.append("
").append(features[f].getType())
- .append(" ").append(features[f].getBegin())
- .append(":").append(features[f].getEnd());
+ text.append("
").append(sf.getType())
+ .append(" ").append(sf.getBegin())
+ .append(":").append(sf.getEnd());
}
}
else
{
text.append("
");
- text.append(features[f].getType());
- if (features[f].getDescription() != null
- && !features[f].getType().equals(
- features[f].getDescription()))
+ text.append(sf.getType());
+ String description = sf.getDescription();
+ if (description != null
+ && !sf.getType().equals(description))
{
- text.append(" ").append(features[f].getDescription());
+ description = description.replace("\"", """);
+ text.append(" ").append(description);
}
- if (features[f].getValue("status") != null)
+ String status = sf.getStatus();
+ if (status != null && !"".equals(status))
{
- text.append(" (").append(features[f].getValue("status"))
- .append(")");
+ text.append(" (").append(status).append(")");
}
}
}