|
|
|
Re: To prevent manual selection of elements on editor [message #488901 is a reply to message #488819] |
Wed, 30 September 2009 16:11 |
|
Hello,
> I added "removeEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);" in
> corresponding editpart , but still I am able to select the element and I
> am able to drag as well.
I faced a similar issue and here is the workaround I used:
I couldn't successfully override the PRIMARY_DRAG_ROLE from any EditPolicyProvider, whatever its priority is. It seems that this role is set up on elements by the container's XYLayoutPolicy, in the createChildEditPolicy() method.
Then it is possible to override the container's EditPolicy by Overriding the LAYOUT_ROLE on containers and providing a custom XYLayoutPolicy with a custom createChildEditPolicy method.
I used a ResizableShapeEditPolicy, with some method overriden (showSelection, getMoveCommand...) and it helped me.
HTH
Mickael
|
|
|
Powered by
FUDForum. Page generated in 0.03200 seconds