|
Re: Creating multiple Display objects [message #518628 is a reply to message #518416] |
Thu, 04 March 2010 11:17  |
Eclipse User |
|
|
|
I've re-directed this to the SWT newsgroup.
Ricky Patel wrote:
> Hello everyone :)
>
> So I'm a few versions back on Eclipse (3.4) and am currently working on
> getting to 3.6 so if I'm a bit outdated, I'm very sorry but after doing
> research I'm sure these issues still come up.
>
> So before I get into the solution, it's best to know the problem. In my
> scenario I am creating an instant messenger type program where there is
> a buddy list window and multiple chat windows. Overall this is currently
> all written in one perspective mainly using views.
>
> The first issue is implementing the windows, mac and linux ability to
> notify a user when the window isn't in view. In OSX this would be the
> icon jumping up and down on the dock, windows a blinking icon and linux
> the same as windows. Overall I still have yet to figure out a solution
> for this. Shell.forceActive was a suggestion to solve this but overall
> didn't work because if you were typing to user1, and then user2 sent you
> a message, user2's window would steal focus.
>
> The second issue is dialogs. If I want to add a new user to my buddy
> list I've created a wizard to help the user do this. But since all the
> windows are on the same display, the wizard dialog restricts access to
> all chat windows until the dialog is disposed of.
>
> The solution I've thought up is creating multiple Display objects for a
> single Program. If each chat window was in its own Display then both my
> problems are mitigated since both act upon the current display.
>
> Does anyone know how to create multiple Displays for a single RCP app?
> Attempting to call Display d = new Display () will result in an
> org.eclipse.swt.SWTException: Invalid thread access. If not anyone have
> a solution for me that I maybe outdated on? This is an highly run
> use-case for me and I would love a solution...
--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
|
|
|
Powered by
FUDForum. Page generated in 0.04246 seconds