Bug 299934 - SWT Multiple Displays instances 'not Implemented'
Summary: SWT Multiple Displays instances 'not Implemented'
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5.1   Edit
Hardware: PC Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2010-01-18 09:25 EST by Rafael Karst CLA
Modified: 2017-07-04 06:28 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.