]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed BrowseContext test code to work headlessly 84/484/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 5 May 2017 10:41:01 +0000 (13:41 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 5 May 2017 11:20:36 +0000 (14:20 +0300)
commitbcec706e6fde4a96acf3bcd4df24c35faeef18a1
tree063d082fbd73c57177bb8075ea862c2056e18504
parentec37e4545752e6aaa194235cf63acd9c1845a1d0
Fixed BrowseContext test code to work headlessly

Previous code invoked JFaceResources.getDefaultFontDescriptor which
eventually invoked Display.getCurrent which would assert out in a
headless test environment.

refs #7184

Change-Id: I59349b8845b8f41d96356764972abcac44d35022
(cherry picked from commit 53e9b3dac5648f360cd91478d9e6e7a495631b08)
bundles/org.simantics.modeling.ui/scl/Simantics/Testing/ActionBrowseContext.scl
bundles/org.simantics.modeling.ui/scl/Simantics/Testing/BrowseContext.scl