Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Cursor problem
Cursor problem [message #465813] Thu, 05 April 2007 19:38
Dhiresh Patel  is currently offline Dhiresh Patel Friend
Messages: 86
Registered: July 2009
Member
Hi,
When a user clicks on the + to expand tree node I run a JOB to get data
from database and then populate the node and expand it. While I am getting
data, I change cursor in Display.getDefault().asyncExec() method:
getSite().getShell().setCursor(this.getSite().getShell().get Display().getSystemCursor(SWT.CURSOR_APPSTARTING));

and after getting the data back i change the cursor back to
SWT.CURSOR_ARROW.

However the cursor seems to lose it's functionality e.g when cursor is on
the border between the 2 views it wouldn't change so that I can expand
one view by dragging its border. It stays as an arrow.

Now this problem doesn't happen if I get data from database and populate
another view. Then it seems to work ok. It seems like triggering other
event seem to bring it's functionality back.

So my question is once I change cursor - what additional change I need to
make it to work normally without triggering some other event?

Dhiresh
Previous Topic:Missing shortcuts in menu
Next Topic:Opening a new Workbench Window
Goto Forum:
  


Current Time: Wed Sep 25 23:49:54 GMT 2024

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

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

Back to the top