Revize c670fa2f
Přidáno uživatelem Jan Havlíček před asi 4 roky(ů)
project/Deserializer/src/Window.java | ||
---|---|---|
406 | 406 |
} |
407 | 407 |
|
408 | 408 |
@Override |
409 |
public void completed(String html, String json, String loaded) {
|
|
409 |
public void completed(String json, String loaded) { |
|
410 | 410 |
Platform.runLater(() -> { |
411 |
String _html = html; String _json = json;
|
|
411 |
String _json = json; |
|
412 | 412 |
|
413 |
boolean showData = html != null && json != null;
|
|
413 |
boolean showData = json != null; |
|
414 | 414 |
|
415 | 415 |
if (!showData && loaded != null && |
416 | 416 |
Report.confirm("Výsledek deserializace", null, "Při deserializaci došlo k chybě. " |
417 | 417 |
+ "Je ale možné, že nejde o serializovaná data. Chcete zobrazit, co bylo načteno?")) { |
418 |
_html = loaded.trim(); |
|
419 |
_json = _html;
|
|
418 |
|
|
419 |
_json = loaded.trim();
|
|
420 | 420 |
showData = true; |
421 | 421 |
} |
422 | 422 |
|
423 | 423 |
if (showData) { |
424 |
editor.setContent(_html, _json);
|
|
424 |
editor.setContent(_json); |
|
425 | 425 |
setOutputLayoutDisabled(false); |
426 | 426 |
} |
427 | 427 |
}); |
Také k dispozici: Unified diff
re #7963 DB communication repaired, tested.
html structures removed