git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: sort fixes
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
reader
/
tui
/
TuiReader.java
diff --git
a/src/be/nikiroo/fanfix/reader/tui/TuiReader.java
b/src/be/nikiroo/fanfix/reader/tui/TuiReader.java
index bef84eae46c92ae9f41ea14f0c69f75d99e5927d..ef5e71bc676a237dd59dd2e53d7fad4affb527be 100644
(file)
--- a/
src/be/nikiroo/fanfix/reader/tui/TuiReader.java
+++ b/
src/be/nikiroo/fanfix/reader/tui/TuiReader.java
@@
-52,12
+52,19
@@
class TuiReader extends BasicReader {
@Override
public void read(boolean sync) throws IOException {
@Override
public void read(boolean sync) throws IOException {
+ // TODO
+ if (!sync) {
+ // How could you do a not-sync in TUI mode?
+ throw new java.lang.IllegalStateException(
+ "Async mode not implemented yet.");
+ }
+
try {
TuiReaderApplication app = new TuiReaderApplication(this,
guessBackendType());
try {
TuiReaderApplication app = new TuiReaderApplication(this,
guessBackendType());
-
new Thread(app).start
();
+
app.run
();
} catch (Exception e) {
} catch (Exception e) {
- Instance.getTraceHandler().error(e);
+ Instance.get
Instance().get
TraceHandler().error(e);
}
}
}
}
@@
-66,9
+73,9
@@
class TuiReader extends BasicReader {
try {
TuiReaderApplication app = new TuiReaderApplication(this, source,
guessBackendType());
try {
TuiReaderApplication app = new TuiReaderApplication(this, source,
guessBackendType());
-
new Thread(app).start
();
+
app.run
();
} catch (Exception e) {
} catch (Exception e) {
- Instance.getTraceHandler().error(e);
+ Instance.get
Instance().get
TraceHandler().error(e);
}
}
}
}