Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » threading problem with SWT_AWT
threading problem with SWT_AWT [message #516937] Thu, 25 February 2010 14:42
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 202
Registered: July 2009
Location: Switzerland
Senior Member

I'm having some threading issues with SWT_AWT. I have a SharedHeaderFormEditor and in one of the pages I integrate jgraph ( Swing graphic tooling).

Since the initialization takes a while I want to notify the user that work is beeing done using

doing this on plain SWT pages, everything works fine. Using SWT_AWT somehow blocks my whole RCP application and now "loading" is displayed.

does anybody have a hint on how to conquer this threading issue?

here the code from createFormContent(IManagedForm managedForm)

Composite parent = managedForm.getForm().getForm().getBody();
parent.setLayout(new FillLayout());

Composite embeddedComposite = new Composite(parent, SWT.EMBEDDED | SWT.NO_BACKGROUND);
embeddedComposite.setLayout(new FillLayout());

final Frame frame = SWT_AWT.new_Frame(embeddedComposite);
graphicEditor = createEditor();


// according to
Listener listener = new Listener() {
	public void handleEvent(Event e) {
		if (SWT.Dispose == e.type) {
			EventQueue.invokeLater(new Runnable() {
				public void run() {
embeddedComposite.addListener(SWT.Dispose, listener);


would really appreciate any help/hint/tip.

Organisations- und Prozessdokumentation Software
Qualit├Ąt Management QMS :: Information Management IMS
Previous Topic:Adding a custom view to the RCP perspective
Next Topic:Birt Report
Goto Forum:

Current Time: Mon Jun 25 10:30:13 GMT 2018

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

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

Back to the top