Bug 110815

Summary: Zoom toolbar item not enabled until multiple diagrams are open
Product: [Modeling] GMF-Runtime Reporter: Cherie Revells <crevells>
Component: GeneralAssignee: Cherie Revells <crevells>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: contributed
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
AbstractContributionItemProvider fix and LogicDiagramTests none

Description Cherie Revells CLA 2005-09-27 11:26:55 EDT
To reproduce:
1. Create a new geoshapes diagram.
RESULT -- The zoom toolbar item where you specify the zoom percentage is 
disabled.  It should be enabled.
2. Create a second geoshapes diagram.
RESULT -- The zoom toolbar item is enabled as expected.
3. Switch back to the first diagram.
RESULT -- The zoom toolbar item is enabled as expected.
Comment 1 Steven R. Shaw CLA 2005-10-05 16:36:31 EDT
Is this a Contribution item service issue?
Comment 2 Steven R. Shaw CLA 2005-10-06 14:35:43 EDT
Changing component to "Runtime Diagram"
Comment 3 Cherie Revells CLA 2005-10-14 11:14:24 EDT
Created attachment 28291 [details]
AbstractContributionItemProvider fix and LogicDiagramTests

Contributed by Cherie Mahoney
Comment 4 Cherie Revells CLA 2005-10-14 11:16:02 EDT
Purpose: 
Bugzilla 110815 Zoom toolbar item not enabled until multiple diagrams are open
- Small change to AbstractContributionItemProvider so that when the init() is 
not called on a custom contribution item when it is retrieved from the adapter.
- Added a new JUnit for this scenario:  
org.eclipse.gmf.tests.runtime.diagram.ui.logic.LogicDiagramTests.testZoomToolbar
Enablement

Activities: 
Bugzilla 110815 gmf_head sshaw 051013 Zoom toolbar item not enabled until 
multiple diagrams are open

Code Reviewed by:
Steve

How tested: 
- Verified the zoom toolbar items and color toolbar items are enabled when the 
first diagram is opened.
- Adhoc zoom tests with the zoom toolbar item.

JUnit Tests:  
Launching org.eclipse.gmf.tests.runtime.diagram.ui

OK, Runs:	64, Fails:	0, Errors:	0, 
org.eclipse.gmf.tests.runtime.diagram.ui, Time:	83.718
Comment 5 Eclipse Webmaster CLA 2010-07-19 12:27:23 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug