This is an automated email from the ASF dual-hosted git repository. mcasters pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/incubator-hop-docs.git
commit eff0efe2beb7be5a916cd5ce43d716a20b5c0415 Author: Hans Van Akelyen <[email protected]> AuthorDate: Tue Nov 10 09:00:26 2020 +0100 Inital stub for webhop docs --- .../modules/ROOT/pages/webhop/developer-guide.adoc | 22 ++++++++++++++++++++++ .../modules/ROOT/pages/webhop/index.adoc | 3 +++ 2 files changed, 25 insertions(+) diff --git a/hop-dev-manual/modules/ROOT/pages/webhop/developer-guide.adoc b/hop-dev-manual/modules/ROOT/pages/webhop/developer-guide.adoc new file mode 100644 index 0000000..2130b12 --- /dev/null +++ b/hop-dev-manual/modules/ROOT/pages/webhop/developer-guide.adoc @@ -0,0 +1,22 @@ += Developer Guide + +== Methods to avoid + + +=== Display.getDefault() is not allowed + +See https://www.eclipse.org/forums/index.php/t/805303/ + +____ +RAP is multi user framework by its nature. Every user session is +associated with a display. In RAP, Display#getDefault() will not create +a new display when it's called from non-UI thread - read +Display#getDefault JavaDoc. When you execute a code in a background +thread, RAP needs to know for which UI session (display) it belongs. +That's why you have to provide the correct UISession/display from outside. +____ + +[source,java] +---- +Display.getDefault() cannot be used in non-UI thread with RAP/RWT. +---- diff --git a/hop-dev-manual/modules/ROOT/pages/webhop/index.adoc b/hop-dev-manual/modules/ROOT/pages/webhop/index.adoc new file mode 100644 index 0000000..cbdedac --- /dev/null +++ b/hop-dev-manual/modules/ROOT/pages/webhop/index.adoc @@ -0,0 +1,3 @@ += Index Page + +* xref:webhop/developer-guide.adoc[Developer Guide]
