[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Windows fires SelectionEvent on tree.setSelection
|
Hi,
Well you could try. If you need immediate help you can use IRC
(#eclipse-dev at irc.freenode.net, nick: tomsontom), I'm online today in
the late afternoon. So if you ping have snippet post it to this thread
and then ping me on IRC.
Greetings from the western part of Austria :-)
Tom
Fabian Zeindl schrieb:
Tom Schindl schrieb:
Looks like a timing issue or are do doing something with
Display#asyncExec()? From what you say I construct the following.
You've got a TextWidget and TreeWidget and when entry text you are
updating the selection in your Tree and the other way round, right?
true.
I guess we need some code to reproduce this. You should try to write a
small snippet you can paste here and we can run.
ok I'll do that. Will you be online again at some time this weekend?
Unfortunately my solution is due on monday :-/.
greetings / GrÃÃe
fabian
Tom
Fabian Zeindl schrieb:
Another strange problem: When I remove the SelectionListener right
before the setSelection and add it afterwards it still gets called
when calling setSelection. Why is that?
I don't know whether this helps, but the SelectionListener gets
called _after_ the method which calls setSelection finished. The
method itself is a ModifyListener.
fabian
Tom Schindl schrieb:
It is a bug if SWT fires a SelectionEvent when setting a selection
programmatically!
Tom
Fabian Zeindl schrieb:
Hi,
for some unknown reason Win32 fires a SelectionEvent when I do
tree.setSelection(TreeItem item) where gnu/linux doesn't fire one.
Is there a reason for this behaviour? Funnily enough, when I change
the code to be simpler, Windows doesn't fire an event on setSelection.
Is this an SWT-Bug?
thanks in advance
fabian
--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl JFace-Committer
--------------------------------------------------------------------