Bug 299933 - SWT Multiple Displays instances 'not Implemented'
Summary: SWT Multiple Displays instances 'not Implemented'
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5.1   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-18 09:22 EST by Rafael Karst CLA
Modified: 2019-01-11 12:07 EST (History)
2 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:22:56 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 Remy Suen CLA 2010-01-18 10:46:08 EST
Bug 120020?
Comment 2 Remy Suen CLA 2010-01-18 10:46:57 EST
Oh, I just realized it's you, Rafael. You opened bug 279865 before.
Comment 3 Rafael Karst CLA 2010-01-18 10:59:23 EST
(In reply to comment #2)
> Oh, I just realized it's you, Rafael. You opened bug 279865 before.

Thanks Remy, i knew that i opened a bug some time ago about this, but i couldn't find it. Thanks again.

Well actually a took a look on <a href="show_bug.cgi?id=120020" title="NEW - multiple Display does not work on Linux">Bug 120020</a>, but the problem is not the same, due to poor performance [i really don't think performance can be improved to be usable as i need] i implemented an workaround [without knowing that it was a workaround, since Windows support it].

There is two decent options to solve the problem i am facing:
1. Implement multiple displays support on Linux/Mac;
2. Implement event dispatch algorithm for Clipboard Data changes; [handle event when something is copied into OS clipboard]

I see this problem is very old, it has about 5 YEARS!

- Is there no interest in SWT Project to implement such support?
- Is it an aspirational feature of SWT? 
- Is there any restriction?

Other approaches are welcome!

Rafael
Comment 4 Xi Yan CLA 2018-12-14 14:57:30 EST
Is this still relevant?
Comment 5 Xi Yan CLA 2019-01-11 12:07:19 EST
No response for a while, closing. Please reopen this ticket if the issue reoccurs.