Community
Participate
Working Groups
It is not possible to insert a menu entry in the "New" right-click menu (the one to create new diagrams, first in the right-click menu of a diagram element) . The value for the locationURI attribute of such Group menu should be : "menu:popup.new". I think the problem comes from /org.eclipse.sirius.diagram.ui/plugin.xml In this plugin.xml file, if you change the order of item contributions from : <contributionItemProvider checkPluginLoaded="false" class="org.eclipse.sirius.diagram.ui.tools.internal.menu.SubDiagramMenu"> <Priority name="Highest"/> </contributionItemProvider> <contributionItemProvider checkPluginLoaded="false" class="org.eclipse.sirius.diagram.ui.tools.internal.menu.PopupMenuContribution"> <Priority name="High"/> </contributionItemProvider> to : <contributionItemProvider checkPluginLoaded="false" class="org.eclipse.sirius.diagram.ui.tools.internal.menu.PopupMenuContribution"> <Priority name="Highest"/> </contributionItemProvider> <contributionItemProvider checkPluginLoaded="false" class="org.eclipse.sirius.diagram.ui.tools.internal.menu.SubDiagramMenu"> <Priority name="Highest"/> </contributionItemProvider> The contributions have been switched, and the priority of PopupMenuContribution has been changed from High to Highest. Then, a group menu tool with location URI : "menu:popup.new" works.
Steps to reproduce: * Import the project "TestGroup" from TestGroup.zip * Open the diagram "new vp939" * On the package "sub package", in the contextual menu check that there are: * An action named "myActionInGroupInTheOpenMenu" in the menu Open --> currently OK * An action named "myActionInGroupInTheNewMenu" in the menu New --> currently KO, a corresponding message is added in the Error Log view: > The group "siriusGroupInNewMenu" can not be added. The menu with the id "popup.new" has not been found.
Created attachment 277262 [details] TestGroup.zip
New Gerrit change created: https://git.eclipse.org/r/135671
The above gerrit fixes the problem, completes the documentation for "New" and "Open" menus, and adds specific automatic tests.
Gerrit change https://git.eclipse.org/r/135671 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=4d09fe339245eb9d6272e987bc93d14b0b046092
Fixed by 4d09fe339245eb9d6272e987bc93d14b0b046092.
Verified with build 6.2.0.201902251539
Available in Sirius 6.2.0, see https://wiki.eclipse.org/Sirius/6.2.0 for details.