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 (parent:
c208aa6
)
JAL-2321 isParseImmediately() allows the parse() method to determine if it was called...
author
Jim Procter
<jprocter@issues.jalview.org>
Mon, 7 May 2018 16:36:28 +0000
(17:36 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Mon, 7 May 2018 16:36:28 +0000
(17:36 +0100)
src/jalview/io/AlignFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/AlignFile.java
b/src/jalview/io/AlignFile.java
index
2340283
..
7b1e84a
100755
(executable)
--- a/
src/jalview/io/AlignFile.java
+++ b/
src/jalview/io/AlignFile.java
@@
-72,8
+72,21
@@
public abstract class AlignFile extends FileParse
long end;
long end;
+ /**
+ * true if parse() has been called
+ */
private boolean parseCalled;
private boolean parseCalled;
+ private boolean parseImmediately;
+
+ /**
+ * @return if doParse() was called at construction time
+ */
+ protected boolean isParseImmediately()
+ {
+ return parseImmediately;
+ }
+
/**
* Creates a new AlignFile object.
*/
/**
* Creates a new AlignFile object.
*/
@@
-153,6
+166,11
@@
public abstract class AlignFile extends FileParse
{
super(source);
initData();
{
super(source);
initData();
+
+ // stash flag in case parse needs to know if it has to autoconfigure or was
+ // configured after construction
+ this.parseImmediately = parseImmediately;
+
if (parseImmediately)
{
doParse();
if (parseImmediately)
{
doParse();