X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationLabels.java;h=9976604510dc300563812202b05c64ae553cd668;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=21c45e90499facd23d5ae051b4a112e655281405;hpb=9d2408483e451285fd555c3cd6e0273977acbaa7;p=jalview.git diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 21c45e9..9976604 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -137,7 +137,7 @@ public class AnnotationLabels extends JPanel */ public AnnotationLabels(AlignmentPanel ap) { - + this.ap = ap; av = ap.av; ToolTipManager.sharedInstance().registerComponent(this); @@ -293,27 +293,26 @@ public class AnnotationLabels extends JPanel EditNameDialog dialog = new EditNameDialog(annotation.label, annotation.description, name, description); - dialog.showDialog(ap.alignFrame, title, - new Runnable() - { - @Override - public void run() - { - annotation.label = dialog.getName(); - String text = dialog.getDescription(); - if (text != null && text.length() == 0) - { - text = null; - } - annotation.description = text; - if (addNew) - { - ap.av.getAlignment().addAnnotation(annotation); - ap.av.getAlignment().setAnnotationIndex(annotation, 0); - } - ap.refresh(true); - } - }); + dialog.showDialog(ap.alignFrame, title, new Runnable() + { + @Override + public void run() + { + annotation.label = dialog.getName(); + String text = dialog.getDescription(); + if (text != null && text.length() == 0) + { + text = null; + } + annotation.description = text; + if (addNew) + { + ap.av.getAlignment().addAnnotation(annotation); + ap.av.getAlignment().setAnnotationIndex(annotation, 0); + } + ap.refresh(true); + } + }); } @Override @@ -438,8 +437,7 @@ public class AnnotationLabels extends JPanel * @param pop */ static void addConsensusMenuOptions(AlignmentPanel ap, - AlignmentAnnotation ann, - JPopupMenu pop) + AlignmentAnnotation ann, JPopupMenu pop) { pop.addSeparator();