eclipsesource / papyrus-umllight

Eclipse Public License 2.0
4 stars 2 forks source link

Fix #16 Hide tables #41

Closed cdamus closed 5 years ago

cdamus commented 5 years ago

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:

    $ 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
planger commented 5 years ago

Wow, you're pulling out the heavy artillery :) Nice! The code looks good to me, however I can't test it right now because of #42.