Community
Participate
Working Groups
Large menus can be overwhelming for new users. There needs to be a way to reduce the contributions made to the UI. Use capabilities to filter UI contributions to the contribution item service.
Purpose: - Configured the Contribution Item Service to use the ActivityFilterProviderDescriptor and added an updateActionBars() method to the service so that the toolbars can be dynamically updated. - Implemented the listening capability in the DiagramActionBarContributor to update the actionbars if a capability is enabled or disabled. - Wrote a JUnit to test this. DEVELOPERS: To filter menu items if a capability is disabled: - If the capability has been matched to the plugin where the contribution item provider is defined, the filtering will occur automatically. Activities: Bugzilla 109904 gmf_head sshaw 050922 Capability support for Contribution Item Service Code Reviewed by: Steve, Linda How tested: - Temporarily added (for testing only) a fake menu item in a plugin with a capability that will appear in the toolbar and diagram menu. Verified that the toolbar menu appeared/disappeared as the capability was enabled/diabled. - Verified toolbar menu item state (e.g. active tool in a drop down menu item) was maintained as capability was enabled/disabled. JUnit Tests: ContributionItemServiceTests -- new JUnits to test this functionality at an API level Launching org.eclipse.gmf.tests.runtime.common.ui.services.action OK, Runs: 2, Fails: 0, Errors: 0, org.eclipse.gmf.tests.runtime.common.ui.services.action, Time: 0.578 Launching org.eclipse.gmf.tests.runtime.diagram.ui OK, Runs: 56, Fails: 0, Errors: 0, org.eclipse.gmf.tests.runtime.diagram.ui, Time: 73.578 Launching org.eclipse.gmf.tests.runtime.emf.ui OK, Runs: 3, Fails: 0, Errors: 0, org.eclipse.gmf.tests.runtime.emf.ui, Time: 5.297 Impact on QE: n/a Impact on Doc: n/a Impact on Build: n/a Delivered to Stream(s): dev.eclipse.org:/home/technology (HEAD)
[GMF Restructure] Bug 319140 : product GMF and component UI was the original product and component for this bug