return jalview.bin.Cache.getProperty("VERSION");\r
}\r
\r
+ public FeatureRenderer getFeatureRenderer()\r
+ {\r
+ return alignPanel.seqPanel.seqCanvas.getFeatureRenderer();\r
+ }\r
+\r
\r
public void fetchSequence_actionPerformed(ActionEvent e)\r
{\r
String newtitle = new String("Copied sequences");\r
\r
//>>>This is a fix for the moment, until a better solution is found!!<<<\r
- FeatureRenderer fr = af.alignPanel.seqPanel.seqCanvas.getFeatureRenderer();\r
- fr.featureColours = alignPanel.seqPanel.seqCanvas.getFeatureRenderer().featureColours;\r
+ af.alignPanel.seqPanel.seqCanvas.getFeatureRenderer().transferSettings(\r
+ alignPanel.seqPanel.seqCanvas.getFeatureRenderer());\r
+\r
\r
if (title.startsWith("Copied sequences"))\r
{\r
{\r
// Add any Multiple Sequence Alignment Services\r
final JMenu msawsmenu = new JMenu("Alignment");\r
+ final AlignFrame af = this;\r
for (int i = 0, j = msaws.size(); i < j; i++)\r
{\r
final ext.vamsas.ServiceHandle sh = (ext.vamsas.ServiceHandle) msaws.\r
{\r
SequenceI[] msa = gatherSequencesForAlignment();\r
new jalview.ws.MsaWSClient(sh, title, msa,\r
- false, true, viewport.getAlignment().getDataset());\r
+ false, true, viewport.getAlignment().getDataset(), af);\r
\r
}\r
\r
{\r
SequenceI[] msa = gatherSequencesForAlignment();\r
new jalview.ws.MsaWSClient(sh, title, msa,\r
- true, true, viewport.getAlignment().getDataset());\r
+ true, true, viewport.getAlignment().getDataset(), af);\r
\r
}\r
\r
* server is a WSDL2Java generated stub for an archetypal MsaWSI service.\r
*/\r
ext.vamsas.MuscleWS server;\r
+ AlignFrame alignFrame;\r
\r
\r
/**\r
* @param preserveOrder DOCUMENT ME!\r
*/\r
\r
- public MsaWSClient(ext.vamsas.ServiceHandle sh, String altitle, SequenceI[] msa,\r
- boolean submitGaps, boolean preserveOrder, Alignment seqdataset)\r
+ public MsaWSClient(ext.vamsas.ServiceHandle sh, String altitle,\r
+ SequenceI[] msa,\r
+ boolean submitGaps, boolean preserveOrder,\r
+ Alignment seqdataset,\r
+ AlignFrame _alignFrame)\r
{\r
\r
+ alignFrame = _alignFrame;\r
if (!sh.getAbstractName().equals("MsaWS"))\r
{\r
JOptionPane.showMessageDialog(Desktop.desktop,\r
}\r
// TODO: JBPNote Should also rename the query sequence sometime...\r
AlignFrame af = new AlignFrame(al);\r
+\r
+ //>>>This is a fix for the moment, until a better solution is found!!<<<\r
+ alignFrame.getFeatureRenderer().transferSettings(af.getFeatureRenderer());\r
+\r
af.addSortByOrderMenuItem(ServiceName + " Ordering",\r
msaorder);\r
\r