Bug 109904 - Add capability filtering support to the contribution item assistant service
Summary: Add capability filtering support to the contribution item assistant service
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Cherie Revells CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2005-09-19 13:05 EDT by Cherie Revells CLA
Modified: 2010-07-19 12:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cherie Revells CLA 2005-09-19 13:05:25 EDT
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.
Comment 1 Cherie Revells CLA 2005-09-22 13:16:46 EDT
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) 
Comment 2 Eclipse Webmaster CLA 2010-07-19 12:18:06 EDT
[GMF Restructure] Bug 319140 : product GMF and component
UI was the original product and component for this bug