Bug 66804 - Statistical view doesn't remember settings on a per-run basis
Summary: Statistical view doesn't remember settings on a per-run basis
Status: CLOSED DUPLICATE of bug 78509
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Antony Miguel CLA
QA Contact:
URL:
Whiteboard: closed471
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-11 19:24 EDT by Allan Pratt CLA
Modified: 2016-05-05 11:19 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 Allan Pratt CLA 2004-06-11 19:24:43 EDT
Let's say I do a run that gathers data for the statistical view. Then I do 
another one. Now I have two runs in my Profiling Navigator.

Every time I bring up the statistical view, the horizontal (time) slider resets 
so its right edge is the current time. That's not what I want: if the run I'm 
viewing is a historical run (and has terminated), all the data is off the 
screen to the left someplace.

When the statistical view opens for the first time or changes the run whose 
data it's showing, a much more sensible behavior would be to "Snap to 
associated graphs," especially if the run in question has terminated. This 
doesn't involve storing any per-run or per-view state: it is something you can 
do based only on the run whose data you're viewing.

Even better would be to remember the last scroll/zoom state of the slider(s) on 
a per-run basis. Imagine: I have two runs in my Profiling Navigator. I examine 
the statistical view of one, and scroll/zoom to the interesting spot. Then I 
click on the other run (with the "Link With Viewer" button pressed), and I 
scroll and zoom to the corresponding part of that one. Click back to the first, 
and wham! I've lost the scroll and zoom I did.
Comment 1 Antony Miguel CLA 2004-06-14 06:03:51 EDT
This is a problem with the view rather than the editor.  When we originally 
designed StatCon we made it an editor specifically because if you set up a lot 
of state looking at a statistical model and you wanted to keep it you had to 
have a file to keep it in, much like a PerfMon configuration file (either that 
or store it in the models themselves but the statistical models don't have 
anywhere to store viewer state).

The editor never resets its scales because its allowed to keep state.  Viewing 
two runs in the editor is easy because you can add references to two 
statistical models and even have them on different horizontal scales.

However, the statistical view could snap to the associated graphs as suggested.
Comment 2 Curtis d'Entremont CLA 2004-06-14 10:13:46 EDT
I would suggest opening with good defaults (snap to associated graphs). I'm not 
sure I like the idea of modal behavior for editors/viewers in general where it 
is based on the data being viewed. For example, when you open a Word document, 
Word preserves the settings and look of the editor used to create the document; 
so if you get two documents from two different people, your Word looks 
completely different, which I think is bad. I think it's a generally accepted 
UI principle to avoid modal behavior if at all possible.
Comment 3 Antony Miguel CLA 2004-06-14 10:22:05 EDT
Curtis, this is a problem only with the statistical view.  The editor shouldn't 
change its existing configuration when a statistical model is added because 
there may already be other statistical models which the user has configured 
their view over (the editor's configuration should be stable while users add 
and remove statistical models).  Given this this addition should not be made to 
the underlying graphing components but to the view code.

If you want the view to snap to associated graphs then in the view code where a 
statistical model is loaded it should call the snap to associated graphs 
function on the relevant time slider.
Comment 4 Antony Miguel CLA 2005-01-12 05:23:08 EST
This will be addressed as part of enhancement 78509
Comment 5 Antony Miguel CLA 2005-01-18 06:06:41 EST
This will be taken into account in enhancement 78509

*** This bug has been marked as a duplicate of 78509 ***
Comment 6 Kathy Chan CLA 2010-11-18 18:51:16 EST
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.