non-Selection policy [message #229094] |
Tue, 16 January 2007 04:08  |
Eclipse User |
|
|
|
Originally posted by: Sferzah.yandex.ru
i want to start&end diagram elements will non-selectable, non-movable. How
can i do that?
|
|
|
|
|
|
|
|
|
Re: non-Selection policy [message #229765 is a reply to message #229728] |
Wed, 24 January 2007 12:20  |
Eclipse User |
|
|
|
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
this.
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
Alexey wrote:
> 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.04060 seconds