Bug 110815 - Zoom toolbar item not enabled until multiple diagrams are open
Summary: Zoom toolbar item not enabled until multiple diagrams are open
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P3 normal
Target Milestone: ---   Edit
Assignee: Cherie Revells CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2005-09-27 11:26 EDT by Cherie Revells CLA
Modified: 2010-07-19 12:27 EDT (History)
0 users

See Also:


Attachments
AbstractContributionItemProvider fix and LogicDiagramTests (1.52 KB, patch)
2005-10-14 11:14 EDT, Cherie Revells CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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