public AlignFrame(AlignmentI al)\r
{\r
super();\r
-\r
- AlignmentUtil.addUniprotFeatures(al);\r
-\r
viewport = new AlignViewport(al,true,true,true,false);\r
alignPanel = new AlignmentPanel(this, viewport);\r
getContentPane().add(alignPanel, java.awt.BorderLayout.CENTER);\r
fontNameMenuItem.setText(viewport.getFont().getName());\r
fontSizeMenuItem.setText(viewport.getFont().getSize()+"");\r
+\r
+ AlignmentUtil.fetchSequenceFeatures(al, alignPanel);\r
}\r
\r
protected void saveAs_actionPerformed(ActionEvent e)\r
{\r
- JFileChooser chooser = new JFileChooser(jalview.bin.Cache.LAST_DIRECTORY);\r
+ JFileChooser chooser = new JFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"));\r
chooser.setDialogTitle("Save Alignment to file - "+e.getActionCommand() +" format.");\r
chooser.setToolTipText("Save");\r
int value = chooser.showSaveDialog(this);\r
if(value == JFileChooser.APPROVE_OPTION)\r
{\r
String choice = chooser.getSelectedFile().getPath();\r
- jalview.bin.Cache.LAST_DIRECTORY = choice;\r
+ jalview.bin.Cache.setProperty("LAST_DIRECTORY", choice);\r
String output = FormatAdapter.get(e.getActionCommand(), viewport.getAlignment().getSequences());\r
try{\r
java.io.PrintWriter out = new java.io.PrintWriter( new java.io.FileWriter( choice ) );\r
\r
public void inputLocalFileMenuItem_actionPerformed(ActionEvent e)\r
{\r
- JFileChooser chooser = new JFileChooser(jalview.bin.Cache.LAST_DIRECTORY);\r
+ JFileChooser chooser = new JFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"));\r
chooser.setDialogTitle("Open local file");\r
chooser.setToolTipText("Open");\r
int value = chooser.showOpenDialog(this);\r
if(value == JFileChooser.APPROVE_OPTION)\r
{\r
String choice = chooser.getSelectedFile().getPath();\r
- jalview.bin.Cache.LAST_DIRECTORY = choice;\r
+ jalview.bin.Cache.setProperty("LAST_DIRECTORY", choice);\r
String format = IdentifyFile.Identify(choice, "File");\r
LoadFile(choice, "File", format);\r
}\r
{\r
\r
try{\r
- JFileChooser chooser = new JFileChooser(jalview.bin.Cache.LAST_DIRECTORY);\r
+ JFileChooser chooser = new JFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"));\r
chooser.setDialogTitle("Save Tree as postscript file");\r
chooser.setToolTipText("Save");\r
int value = chooser.showSaveDialog(this);\r
if (value == JFileChooser.APPROVE_OPTION)\r
{\r
String choice = chooser.getSelectedFile().getPath();\r
- jalview.bin.Cache.LAST_DIRECTORY = choice;\r
+ jalview.bin.Cache.setProperty("LAST_DIRECTORY", choice);\r
\r
bw = new PrintWriter(new FileWriter(choice));\r
getPostscript(bw);\r
\r
protected void loadbutton_actionPerformed(ActionEvent e)\r
{\r
- JFileChooser chooser = new JFileChooser(jalview.bin.Cache.LAST_DIRECTORY);\r
+ JFileChooser chooser = new JFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"));\r
chooser.setDialogTitle("Load colour scheme");\r
chooser.setToolTipText("Load");\r
int value = chooser.showOpenDialog(this);\r
if (value == JFileChooser.APPROVE_OPTION)\r
{\r
String choice = chooser.getSelectedFile().getPath();\r
- jalview.bin.Cache.LAST_DIRECTORY = choice;\r
+ jalview.bin.Cache.setProperty("LAST_DIRECTORY", choice);\r
\r
try{\r
BufferedReader in = new BufferedReader(new FileReader(choice));\r
\r
protected void savebutton_actionPerformed(ActionEvent e)\r
{\r
- JFileChooser chooser = new JFileChooser(jalview.bin.Cache.LAST_DIRECTORY);\r
+ JFileChooser chooser = new JFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"));\r
chooser.setDialogTitle("Save colour scheme");\r
chooser.setToolTipText("Save");\r
int value = chooser.showSaveDialog(this);\r
if (value == JFileChooser.APPROVE_OPTION)\r
{\r
String choice = chooser.getSelectedFile().getPath();\r
- jalview.bin.Cache.LAST_DIRECTORY = choice;\r
+ jalview.bin.Cache.setProperty("LAST_DIRECTORY", choice);\r
\r
try{\r
PrintWriter out = new PrintWriter(new FileWriter(choice));\r
{\r
this.av = av;\r
sr = new SequenceRenderer(av);\r
- JFileChooser chooser = new JFileChooser(jalview.bin.Cache.LAST_DIRECTORY);\r
+ JFileChooser chooser = new JFileChooser(jalview.bin.Cache.getProperty("LAST_DIRECTORY"));\r
chooser.setDialogTitle("Save as HTML");\r
chooser.setToolTipText("Save");\r
int value = chooser.showSaveDialog(null);\r
if(value == JFileChooser.APPROVE_OPTION)\r
{\r
String choice = chooser.getSelectedFile().getPath();\r
- jalview.bin.Cache.LAST_DIRECTORY = choice;\r
+ jalview.bin.Cache.setProperty("LAST_DIRECTORY", choice);\r
try{\r
PrintWriter out = new java.io.PrintWriter(new java.io.FileWriter(choice));\r
out.println("<HTML>");\r