git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d10280f
)
JAL-1633 set file format on 'translate cDNA'
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 12 Feb 2015 11:04:45 +0000
(11:04 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 12 Feb 2015 11:04:45 +0000
(11:04 +0000)
src/jalview/gui/AlignFrame.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AlignFrame.java
b/src/jalview/gui/AlignFrame.java
index
d613ea7
..
dedff72
100644
(file)
--- a/
src/jalview/gui/AlignFrame.java
+++ b/
src/jalview/gui/AlignFrame.java
@@
-429,7
+429,7
@@
public class AlignFrame extends GAlignFrame implements DropTargetListener,
public void setFileName(String file, String format)
{
fileName = file;
public void setFileName(String file, String format)
{
fileName = file;
- currentFileFormat = format;
+ setFileFormat(format);
reload.setEnabled(true);
}
reload.setEnabled(true);
}
@@
-4963,6
+4963,7
@@
public class AlignFrame extends GAlignFrame implements DropTargetListener,
else
{
AlignFrame af = new AlignFrame(al, DEFAULT_WIDTH, DEFAULT_HEIGHT);
else
{
AlignFrame af = new AlignFrame(al, DEFAULT_WIDTH, DEFAULT_HEIGHT);
+ af.setFileFormat(this.currentFileFormat);
Desktop.addInternalFrame(af, MessageManager.formatMessage(
"label.translation_of_params", new Object[]
{ this.getTitle() }), DEFAULT_WIDTH, DEFAULT_HEIGHT);
Desktop.addInternalFrame(af, MessageManager.formatMessage(
"label.translation_of_params", new Object[]
{ this.getTitle() }), DEFAULT_WIDTH, DEFAULT_HEIGHT);
@@
-4972,6
+4973,16
@@
public class AlignFrame extends GAlignFrame implements DropTargetListener,
}
/**
}
/**
+ * Set the file format
+ *
+ * @param fileFormat
+ */
+ public void setFileFormat(String fileFormat)
+ {
+ this.currentFileFormat = fileFormat;
+ }
+
+ /**
* Try to load a features file onto the alignment.
*
* @param file
* Try to load a features file onto the alignment.
*
* @param file