Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Changing Mouse Cursor
Changing Mouse Cursor [message #115113] Tue, 09 December 2008 17:02 Go to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
Hi,

I wanted to change the mouse cursor in an application containing multiple
tabfolders which contain tables using the
Display.getCurrent().getActiveShell().setCursor method to the busy cursor.
But the cursor is just set busy for parts of the shell. In a RCP
application the cursor is set to busy for every child. Trying to set the
cursor to SWT.WAIT for the tables manually did not work in the RAP
application. I wanted to ask if their is another way to change the cursor
for the whole application.

Thanks in advance

Gunnar
Re: Changing Mouse Cursor [message #115139 is a reply to message #115113] Tue, 09 December 2008 20:40 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Gunnar,

thanks for reporting this issue.

Gunnar Wurl wrote:
> I wanted to change the mouse cursor in an application containing
> multiple tabfolders which contain tables using the
> Display.getCurrent().getActiveShell().setCursor method to the busy
> cursor. But the cursor is just set busy for parts of the shell.

But it is set somewhere? I just tested with a simple snippet and found
that the custom cursor on a shell was not shown at all!

> In a RCP
> application the cursor is set to busy for every child. Trying to set the
> cursor to SWT.WAIT for the tables manually did not work in the RAP
> application. I wanted to ask if their is another way to change the
> cursor for the whole application.

This is obviously a bug. Could you please file a bugzilla entry?

Regards, Ralf
Re: Changing Mouse Cursor [message #115151 is a reply to message #115113] Tue, 09 December 2008 20:47 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Oh, I forgot to mention that you can use

BusyIndicator.showWhile( Display, Runnable() )

to show a busy cursor on the entire display during a long-running task.

Ralf
Re: Changing Mouse Cursor [message #115224 is a reply to message #115151] Wed, 10 December 2008 10:26 Go to previous messageGo to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
Thank you,

I filed a Bug Report and tried the BusyIndicator.showWhile method. But it
is not really working for me. In my case when the user selects an item in
a table, a shell which contains more detailed info on the selected item
opens. The process of creating and filling the shell doesn't take much
time. The problem seems to be opening the shell. The command returns fast
so no busy cursor is displayed, but it takes about one or two seconds
until the new shell is displayed. Is there a possibility making the
application wait until the shell is displayed so that the cursor is shown?

Ralf Sternberg wrote:

> Oh, I forgot to mention that you can use

> BusyIndicator.showWhile( Display, Runnable() )

> to show a busy cursor on the entire display during a long-running task.

> Ralf
Re: Changing Mouse Cursor [message #115261 is a reply to message #115224] Wed, 10 December 2008 11:56 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Gunnar Wurl wrote:
> Thank you,
>
> I filed a Bug Report and tried the BusyIndicator.showWhile method. But
> it is not really working for me. In my case when the user selects an
> item in a table, a shell which contains more detailed info on the
> selected item opens. The process of creating and filling the shell
> doesn't take much time. The problem seems to be opening the shell. The
> command returns fast so no busy cursor is displayed, but it takes about
> one or two seconds until the new shell is displayed. Is there a
> possibility making the application wait until the shell is displayed so
> that the cursor is shown?

Thanks for the bug report.
I don't see a simple solution for your problem and I don't like to
recommend something like including a Thread.sleep in your Runnable...

Ralf
Previous Topic:Changing date format of DateTime widget
Next Topic:Tooling source code?
Goto Forum:
  


Current Time: Tue Apr 23 16:28:59 GMT 2024

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

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

Back to the top