Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Saving a diagram in a background thread
Saving a diagram in a background thread [message #172412] Wed, 13 February 2008 11:42
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 42
Registered: July 2009
Member
Hi,

This questions came up already in this newsgroup, but I couldn't find any
solution for it yet:
I am trying to generate documentation for my GMF models and this
documentation should of course include the diagrams as bitmaps. As it takes
quite a while to generate everything, I want to launch a long running job in
the background and not to block the UI thread.

Unfortunately, the copyToImage() method requires a shell and therefore
throws an "Invalid thread access" exception when not being called from the
UI thread.

Does anybody know a workaround for this problem?

Thanks,
Kai
Previous Topic:Decorating Labels
Next Topic:Position of child nodes in a compartment
Goto Forum:
  


Current Time: Fri Apr 26 06:41:42 GMT 2024

Powered by FUDForum. Page generated in 0.02899 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top