Hi Martin,
The preference page is provided by org.eclipse.papyrus.infra.newchild.ui:
org.eclipse.papyrus.infra.newchild.ui.preferences.Preferences
The behavior is handled by the CreationMenuRegistry in org.eclipse.papyrus.infra.newchild:
org.eclipse.papyrus.infra.newchild.CreationMenuRegistry.setCreationMenuVisibility(Folder, Boolean)
Note that the preferences still need to change slightly, due to Bug 494728 [1]
[1] 494728: [NewChild - Preferences] Major flaws in the NewChild Preferences
https://bugs.eclipse.org/bugs/show_bug.cgi?id=494728
HTH,
Camille
De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
De la part de Martin Fleck
Envoyé : vendredi 27 mai 2016 10:55
À : mdt-papyrus.dev@xxxxxxxxxxx
Objet : [mdt-papyrus.dev] Filtering NewChild Extensions
Hi,
As we are working on Papyrus for Information Modeling, we want to customize the New Child-Dialog context menu in the Model Explorer.
We saw that there is an option to add new menu entries via the org.eclipse.papyrus.infra.newchild extension point.
In order to remove unwanted entries from this extension point (the standard 'New Child' and 'New Relationship' entry from UML), we currently go through the CreationMenuRegistry and set the visibility of those entries to false programatically.
However, we saw that there is a new preference that should achieve the same goal.
Could you let us know which preference options we have to set in the product customization ini to filter the standard newchild-extensions?
EclipseSource Services GmbH