</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/plugin.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/plugin.java"/>
- <classpathentry kind="lib" path="/VARNAv3-8b/VARNAv3-8b.jar"/>
+ <classpathentry kind="lib" path="lib/VARNAv3-8b.jar"/>
<classpathentry kind="output" path="classes"/>
</classpath>
AppVarnaBinding vab;
JPanel varnaPanel;
+
+ String name;
//JSplitPane splitPane;
initVarna();
}
- public AppVarna(String seq){
+ public AppVarna(String seq,String name){
vab = new AppVarnaBinding(seq);
+ name=this.name;
initVarna();
}
//vab.setFinishedInit(false);
varnaPanel=vab.vp;
this.getContentPane().add(varnaPanel);
- jalview.gui.Desktop.addInternalFrame(this,"test",200,200);
+ jalview.gui.Desktop.addInternalFrame(this,name,getBounds().width, getBounds().height);
showPanel(true);
}
}
}
else
- {
- //TODO: Something to check if it's an RNA
- //like: if(seq.getAnnotation()[0].annotations[0].secondaryStructure == 'S')
- final SequenceI seqI = seq.getDatasetSequence();
-
- menuItem = new JMenuItem();
- menuItem.setText("RNA structure");
- menuItem.addActionListener(new java.awt.event.ActionListener()
- {
- public void actionPerformed(ActionEvent e)
- {
- System.out.println("Call Varna "+seqI.getSequenceAsString());
- new AppVarna(seqI.getSequenceAsString());
-
- }
- });
- viewStructureMenu.add(menuItem);
-
+ {
//JAN structureMenu.remove(viewStructureMenu);
// structureMenu.remove(colStructureMenu);
}
+
+ //if(seq.getAnnotation()[0].annotations[0].secondaryStructure == 'S'){
+ //TODO: Something to check if it's an RNA
+ //like: if(seq.getAnnotation()[0].annotations[0].secondaryStructure == 'S')
+ final SequenceI seqI = seq.getDatasetSequence();
+ //ap.getAlignment().get
+ menuItem = new JMenuItem();
+ menuItem.setText("RNA structure");
+ menuItem.addActionListener(new java.awt.event.ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
+ System.out.println("Call Varna "+seqI.getSequenceAsString()+" "+seqI.getName());
+ new AppVarna(seqI.getSequenceAsString(),seqI.getName());
+
+ }
+ });
+ viewStructureMenu.add(menuItem);
+ //}
+
menuItem = new JMenuItem("Hide Sequences");
menuItem.addActionListener(new java.awt.event.ActionListener()