Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322226 - Make org.eclipse.e4.ui.di free from SWT
Summary: Make org.eclipse.e4.ui.di free from SWT
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 4.1 M2   Edit
Assignee: Thomas Schindl CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 319713
  Show dependency tree
 
Reported: 2010-08-10 09:19 EDT by Thomas Schindl CLA
Modified: 2010-08-10 13:37 EDT (History)
2 users (show)

See Also:


Attachments
patch which uses Realm (3.25 KB, patch)
2010-08-10 09:21 EDT, Thomas Schindl CLA
no flags Details | Diff
patch (5.68 KB, patch)
2010-08-10 09:28 EDT, Thomas Schindl CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schindl CLA 2010-08-10 09:19:01 EDT
The bundle should not depend on SWT because this leads to a dependency on SWT for org.eclipse.e4.ui.workbench which is violating the core design of e4.
Comment 1 Thomas Schindl CLA 2010-08-10 09:21:39 EDT
Created attachment 176234 [details]
patch which uses Realm

This patch makes use of the Databinding-Realm to sync events which the UI-Thread
Comment 2 Thomas Schindl CLA 2010-08-10 09:28:08 EDT
Created attachment 176236 [details]
patch

Oleg - can you please review this change to me this looks ok
Comment 3 Oleg Besedin CLA 2010-08-10 11:36:19 EDT
+1, one thing I'd change is that in the UIEventObjectSupplier realm is not really optional:

	@Inject @Optional
	protected Realm contextRealm;

(it was possible to get/create Display on the fly, so the Display was optional, but you can't create Realm without dependency on something else, like SWT :-).)
Comment 4 Thomas Schindl CLA 2010-08-10 13:37:10 EDT
released with the change Oleg suggested to HEAD >= 2010-08-10