Bug 299934

Summary: SWT Multiple Displays instances 'not Implemented'
Product: [Eclipse Project] Platform Reporter: Rafael Karst <rafaelkarst>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse.felipe, remy.suen, skovatch
Version: 3.5.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Rafael Karst CLA 2010-01-18 09:25:10 EST
Hi, 

The Scenario: Since there is not Event available for detecting Clipboard data in SWT Classes, i have implemented an algorithm to monitor the SWT Clipboard, since Clipboard handle different types of Content, multiple Threads handle the Clipboard. I've tried using only one Display Object for making instances of Clipboard, but performance was terrible poor, so I have implemented multiple Display objects to individually each one handle its own Clipboard Object on its own Thread. For Windows... It is OK.

Problem: According to the description of the scenario, it is not possible to create multiple instances of Display. This is completely blocking the functionality of application.

Expect: At least why, it doesn't even implemented on Linux/Apple, is there any restriction? How can i workaround this? Can i try to override the Display object in SWT and guarantee the same functionality it have in Windows platform?
Comment 1 Felipe Heidrich CLA 2010-01-18 10:18:20 EST
Same as Bug 299933 but on Mac ?
Comment 2 Rafael Karst CLA 2010-01-18 10:41:50 EST
(In reply to comment #1)
> Same as Bug 299933 but on Mac ?

Yes, i thought it would be easier to query the problem in your system based on the ComboBox [MacOs, Windows, etc...] field than matching some String into the description field.
Comment 3 Scott Kovatch CLA 2010-07-14 20:26:44 EDT
In Cocoa there can only be one Display object per process, because there can only be one NSApplication per process, and it must run on thread 0. Multiple threads cannot accept or process events, hence the restriction.
Comment 4 Lakshmi P Shanmugam CLA 2017-07-04 06:28:50 EDT
Bug triaged, visit https://wiki.eclipse.org/SWT/Devel/Triage for more
information.