]> gerrit.simantics Code Review - simantics/district.git/commit
Use DatabaseJob instead of Job to prevent UI from getting stuck 38/2338/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 19 Oct 2018 12:00:46 +0000 (15:00 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 19 Oct 2018 12:06:56 +0000 (12:06 +0000)
commitb654d9f368d601565303bcf646fc4fbdfbc37090
treed16c3263d98c1a82876c6da5160f7a67dd08a06d
parent6a4259eb4fee7e5b8bfbe818f7325d73d99a7803
Use DatabaseJob instead of Job to prevent UI from getting stuck

The breakdown calculation can take a long time, thus it is better to
reverse the database for that time so that the rest of the UI doesn't
start synchronously waiting for DB access.

gitlab #11

Change-Id: If4556559009ea8109b95cf6c12d7bae2243d59f3
(cherry picked from commit 15c720d419c1139942790dc12acb6936e75b1568)
org.simantics.district.network.ui/src/org/simantics/district/network/ui/breakdown/DistrictNetworkBreakdownPanel.java