Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Creating multiple Display objects(Researching the ability to create multiple display objects to circumvent framework issues)
Creating multiple Display objects [message #518416] Thu, 04 March 2010 03:50 Go to next message
Ricky Patel is currently offline Ricky PatelFriend
Messages: 33
Registered: July 2009
Member
Hello everyone Smile

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...
Re: Creating multiple Display objects [message #518628 is a reply to message #518416] Thu, 04 March 2010 16:17 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


Previous Topic:load an image from within a plugin
Next Topic:View toolbar problem
Goto Forum:
  


Current Time: Thu Apr 25 06:09:12 GMT 2024

Powered by FUDForum. Page generated in 0.03769 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top