[英]Disable drag and drop part in Eclipse e4
I'm writing an E4 application with drag dropping of parts. 我正在编写一个E4应用程序,拖放部件。 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”,但这不起作用。
IPresentationEngine.NO_MOVE
is the correct thing to use. IPresentationEngine.NO_MOVE
是正确的用法。
IPresentationEngine.NO_MOVE
is a string with the value NoMove
. IPresentationEngine.NO_MOVE
是一个值为NoMove
的字符串。 To stop a part being moved you add that string to the Tags second of the part description in your Application.e4xmi file. 要停止正在移动的零件,请将该字符串添加到Application.e4xmi文件中零件描述的第二个标签中。
You can also set the tag programmatically if you want to turn this on or off. 如果要打开或关闭此标记,也可以以编程方式设置标记。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.