- /* Alignment al = (Alignment) av.getAlignment();\r
- SequenceGroup sg = av.alignment.findGroup( al.getSequenceAt(i));\r
- if(sg==null || !(sg.cs instanceof ConservationColourScheme))\r
- return;\r
+ if(endEdit==startEdit)\r
+ {\r
+ ap.alignFrame.historyList.pop();\r
+ ap.alignFrame.updateEditMenuBar();\r
+ }\r
+\r
+ av.updateConservation();\r
+ av.updateConsensus();\r
+\r
+ // Y O Y CLUSTALX\r
+ ColourSchemeI cs = av.getGlobalColourScheme();\r
+ if(cs instanceof ConservationColourScheme)\r
+ {\r
+ ConservationColourScheme ccs = (ConservationColourScheme) cs;\r
+ if(ccs.cs instanceof ClustalxColourScheme)\r
+ {\r
+ Conservation c = new Conservation("All",\r
+ ResidueProperties.propHash, 3,\r
+ av.alignment.getSequences(), 0,\r
+ av.alignment.getWidth() - 1);\r
+ c.calculate();\r
+ c.verdict(false, av.ConsPercGaps);\r
+\r
+ ClustalxColourScheme cxs = (ClustalxColourScheme)ccs.cs;\r
+ cxs.resetClustalX(av.alignment.getSequences(), av.alignment.getWidth());\r
+ ccs = new ConservationColourScheme(c, cxs);\r
+ av.setGlobalColourScheme(ccs);\r
+ }\r
+ }\r