|Re: non-Selection policy [message #229765 is a reply to message #229728]
||Wed, 24 January 2007 17:20
| Nhu Le
Registered: July 2009
I would check the following:|
1. Make sure the part you think is the part that runs. This happens to
me several times. Try putting break points, print out, etc. to confirm
2. Override the createEditPolicies() in that part and put nothing in the
body. Don't call super.createEditPolicies() for now, just add policies
one by one as you go. You can consolidate the policies later on.
> Nhu Le wrote:
>> This should do it. But I think the real problem is that there are
>> still some [inherited???] edit policies that are still in force. If
>> you override the getCommand() in your class, just call parent and then
>> print out the command returned, you should be able to see what command
>> gets executed. Alternatively, you can trace the getTargetEditPart()
>> and see what edit policies get invoked for your mouse input.
> thank you Nhu!
> i think so, and find and remove all "links" corresponding to visual
> selection representation. but how to find others, corresponding for
> dragging, etc - my knoweledge too poor for this.
> i'll try your advice, thank you a lot!
Powered by FUDForum
. Page generated in 0.02185 seconds