Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332717

Summary: [All diagrams] Zoom factor has no effect
Product: [Modeling] Papyrus Reporter: Loïc Quéran <loic.queran>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: ansgar.radermacher, cedric.dumoulin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Loïc Quéran CLA 2010-12-16 06:06:25 EST
Build Identifier: Build id: I20100608-0911

Open IBD, change from 100% to 75%. Nothing occurs.

Reproducible: Always
Comment 1 Ansgar Radermacher CLA 2011-04-12 08:40:17 EDT
The error is reproducible with all diagrams (changed title)

There is (at least one way) to reproduce the behavior: it happens, once multiple copies of a diagram tab are open and is thus related to bug 335424 (hopefully, this is the only way to trigger the zoom-with-effect behavior). Once the latter is fixed, this bug should only be closed after an examination whether it can be triggered by additional manipulations.
Comment 2 Ansgar Radermacher CLA 2011-04-12 17:56:58 EDT
Apparently, I did not observe the behavior correctly: The problem occurs, if more than one diagram is open (i.e. it does not depend on 335424). The changing of the zoom factor via the zoom box always affects only the one diagram (the last that has been opened).
Comment 3 Cedric Dumoulin CLA 2011-04-14 06:16:52 EDT
The zoom factor work on the currently selected diagram. It doesn't change the zoom of all diagrams in one go.
This is the normal behavior.
I can't reproduce your bug.

The class implementing the zoom factor is:
org.eclipse.papyrus.diagram.menu.toolbar.ZoomToolbar
Comment 4 Ansgar Radermacher CLA 2011-04-14 23:36:53 EDT
No, it does not. The problem is not that we want to change the zoom factor of all diagrams at the same time. The problem is that it does not change the zoom factor of the currently active diagram, but only of the one that has been opened at latest.

Steps to reproduce:
- open a model with at least two diagrams.
- close all diagrams
- open a first diagram (zoom should be at 100%)
- now open a second diagram, select it and change the zoom factor.
- now select the first diagram again
=> 1. the zoom factor remains on the value of the 2nd diagram
=> 2. changing the zoom factor only affects the 2nd diagram, although the first
is active (visible)
It seems that the zoom dialog box remains linked with the latest diagram that has been added and not with the active diagram.


> The zoom factor work on the currently selected diagram. It doesn't change the
> zoom of all diagrams in one go.
> This is the normal behavior.
> I can't reproduce your bug.
> 
> The class implementing the zoom factor is:
> org.eclipse.papyrus.diagram.menu.toolbar.ZoomToolbar
Comment 5 Ansgar Radermacher CLA 2011-05-06 08:02:12 EDT
This bug has been fixed in the 0.8 version of Papyrus. It replaces the GMF tool-box line (including the zoom-box) with a re-implementation (in plugin org.eclipse.papyrus.diagram.menu).

Since the effort of fixing the bug for version 0.7.x. would presumably be rather high, it will not be done for version 0.7.x. For this version, a work-around is to use control + mouse-wheel to zoom-in and out. This works, even if the zoom-box eventually shows the zoom-factor of another diagram (In case of windows, control "+" and "-" might work as well).