|
Re: How to change default SelectionTool cursor? [message #174986 is a reply to message #174845] |
Fri, 01 April 2005 17:07 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The selection tool is designed to have no cursor. If you want to change the
canvas' default cursor, have you tried Canvas.setCursor()?
"Pavel Repkin" <pavel.repkin@borland.com> wrote in message
news:b4d3a0d83e7801595ad6c33d00b129c4$1@www.eclipse.org...
> Hello, GEF team!
> I would like to change default selection cursor.
> This is how I do it:
> SelectionTool selectionTool = ...
> selectionTool.setDefaultCursor(myCursor);
>
> The cursor actually gets substituted, but when I move mouse over selection
> handles, the cursor isn't changed.
>
> I've investigated this and found out the following.
> SelectionTool sets DomainEventDispatcher.overrideCursor indirectly through
> the following control flow
> ----
> DomainEventDispatcher.setOverrideCursor(Cursor) line: 488
> GraphicalViewerImpl.setCursor(Cursor) line: 316
> AbstractTool.setCursor(Cursor) line: 1236
> ----
> Then any attempt to ask DomainEventDispatcher to change cursor fails,
> because overrideCursor isn't null.
> Are there any workaround to solve my problem?
>
>
|
|
|
|
Re: How to change default SelectionTool cursor? [message #175363 is a reply to message #175239] |
Mon, 04 April 2005 14:45 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
That doesn't sound surprising now that you mention it.
Can you open a bugzilla?
"Pavel Repkin" <pavel.repkin@borland.com> wrote in message
news:8b5872497f0b6333d87a7ca785a5468a$1@www.eclipse.org...
> I've tried to set Canvas cursor the way you proposed, but it doesn't work
> well.
> At the time view is opened the cursor looks good - the one I specified.
> But when I move mouse over selection handle and then move it back to
> canvas, the cursor changes to default arrow, and doesn't seem to change to
> my custom cursor ever after that.
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.85408 seconds