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
Merge commit '738dd8c426dcc6ed2508d68b7985f68d66549889'
[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 640d628b3e32305a36089f6cfa25ed236dc7d83a..4da86c51e7825b719c01260aa858891d100153d2 100644
(file)
--- a/
src/be/nikiroo/fanfix/reader/tui/TuiReader.java
+++ b/
src/be/nikiroo/fanfix/reader/tui/TuiReader.java
@@
-52,10
+52,17
@@
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) {
Instance.getTraceHandler().error(e);
}
} catch (Exception e) {
Instance.getTraceHandler().error(e);
}
@@
-66,12
+73,20
@@
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) {
Instance.getTraceHandler().error(e);
}
}
} catch (Exception e) {
Instance.getTraceHandler().error(e);
}
}
+ @Override
+ public void search(boolean sync) throws IOException {
+ // TODO
+ if (sync) {
+ throw new java.lang.IllegalStateException("Not implemented yet.");
+ }
+ }
+
@Override
public void search(SupportType searchOn, String keywords, int page,
int item, boolean sync) {
@Override
public void search(SupportType searchOn, String keywords, int page,
int item, boolean sync) {