Community
Participate
Working Groups
In my RCP application (based on 4.6.3), I contribute several MPartDescriptors via a fragment.e4xmi to org.eclipse.e4.ide.application:descriptors. I tagged them with 'View', so they show up in the "Show View" dialog, and some of them, I tagged with 'NoMove', so they cannot be dragged from the PartStack in which I open them. 'View' works, but 'NoMove' does not. 'NoMove' does work when I use it on MPartStacks, though. By debugging into the PartDragAgent, I discovered that, when dragging starts, the 'info.itemElement' is not an MPart, but an MPlaceholder (with the part being its ref). The part does have the right tags, but the placeholder does not, which explains why it does not work. I will contribute a patch-set that would fix this issue for me.
Created attachment 267788 [details] In case of MPlaceholder, evaluate tags of reference
(In reply to Max Hohenegger from comment #1) > Created attachment 267788 [details] > In case of MPlaceholder, evaluate tags of reference Thanks, please convert to a Gerrit review.
New Gerrit change created: https://git.eclipse.org/r/96440
Gerrit change https://git.eclipse.org/r/96440 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=0c21aea3cbc0f9d8ed27520e93a70182ec7b8378
Thanks, Max.
I have been having problems trying to get the setMovable functionality for my E3 application working using layout.getViewLayout(MyView.ID).setMoveable(false) Debugging, I have seen that for my E3 part, the 'NoMove' tag is set on the MPlaceholder, while the ref:d part does not have the NoMove tag. Consequently, this fix seems to have broken the NoMove functionality for E3, as the referenced part created does not get the NoMove.