简体   繁体   中英

Disable drag and drop part in Eclipse e4

I'm writing an E4 application with drag dropping of parts. Now I need to disable drag and drop on one part. So that part need always be on that part stack.

Is their some solution for this. I searched already on the internet to a solution but found only "IPresentationEngine.NO_MOVE" but that doesn't work on the part.

IPresentationEngine.NO_MOVE is the correct thing to use.

IPresentationEngine.NO_MOVE is a string with the value NoMove . To stop a part being moved you add that string to the Tags second of the part description in your Application.e4xmi file.

在此输入图像描述

You can also set the tag programmatically if you want to turn this on or off.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM