|Custom Tree Selection mechanism [message #739316]
||Mon, 17 October 2011 10:36
Registered: October 2011
Dear SWT gurus,|
I am using a TreeViewer (within the Common Navigator Framework) and want to implement my own Tree Selection mechanism.
Basically, the Tree should disallow certain selection operations, e.g. the Click on certain tree items should not change the selection (especially not create selection events) but result in a hover that displays a disallowed icon.
I understand (correctly?) that I need to modify the org.eclipse.swt.widgets.Tree implementation, for example the WM_LBUTTONDOWN method. Therefore, I have to copy the Tree code and make my modifications.
(BTW: Adding a selection listener that instantly removes the changed selection is not an option because that would result in flickering and two selection change event propagations.)
Is there a way to use the existing SWT jar and just "exchange" the Tree implementation? I want the other components (like CommonViewer) to use my Tree implementation instead of the original one.
Can this problem be addressed by using a custom classloader, and if, how?
Powered by FUDForum
. Page generated in 0.03266 seconds