[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: deleteFromModelAction remove="true" in my plugin.xml doesn't work, rest ok
|
I don't have a general solution, but you might be interested in what I found out:
Most of the other menu items are added by GEF, but this item is removed by generated GMF-source afterwards and re-added (after popupContributions apply):
part/DiagramEditorContextMenuProvider.buildContextMenu
I guess this is, because GEF does not provide it for connections or something like that.
So if you just comment out the following lines there, then you can control it via plugin.xml:
menu.remove(ActionIds.ACTION_DELETE_FROM_MODEL);
menu.appendToGroup("editGroup", deleteAction);
This should be sufficient if you want to remove it for all editParts, but if you would like to remove it for some special EditParts, it may leave you with connections not having this menu.
Hope that helps,
Peter