Deploy an Equinox transform to remove the New Table menu action in the model explorer. This heavyweight approach is required because activities cannot be used to hide this menu. Debugging shows that Eclipse Platform is not consulting the activity manager to determine whether this sub-menu of the context menu should be shown or not.
Testing Note
Testing the Equinox transform in a run-time workbench is difficult, as it requires individual configuration of start levels and auto-start for bundles (as configured in the product definition). Unfortunately, PDE cannot use the product definition for this because the product selection in the launch configuration is the product extension in the RCP bundle, not the product definition that is used only by the build. So, the best way to test this is to run a Maven build with the product profile and run the product built for your platform:
$ mvn -Pproduct clean verify
$ cd releng/org.eclipse.papyrus.umllight.product/target/products/org.eclipse.papyrus.umllight.product
$ open macosx/cocoa/x86_64/papyrus-umllight.app
Hide the toolbar items for table creation.
Deploy an Equinox transform to remove the New Table menu action in the model explorer. This heavyweight approach is required because activities cannot be used to hide this menu. Debugging shows that Eclipse Platform is not consulting the activity manager to determine whether this sub-menu of the context menu should be shown or not.
Testing Note
Testing the Equinox transform in a run-time workbench is difficult, as it requires individual configuration of start levels and auto-start for bundles (as configured in the product definition). Unfortunately, PDE cannot use the product definition for this because the product selection in the launch configuration is the product extension in the RCP bundle, not the product definition that is used only by the build. So, the best way to test this is to run a Maven build with the
product
profile and run the product built for your platform: