Bug 80239 - Inplace outline view for AJ Editor doesn't remember size and position
Summary: Inplace outline view for AJ Editor doesn't remember size and position
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Helen Beeken CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-06 03:38 EST by Helen Beeken CLA
Modified: 2005-07-07 08:21 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 Helen Beeken CLA 2004-12-06 03:38:56 EST
When using the inplace outline view with the aspectj editor, every time you 
bring it up it defaults to the default size and position.

To reproduce:

(1) Open a file in the aspectj editor
(2) use "Ctrl+O" to show the outline
(3) Click on the arrow on the top right hand corner of the inplace outline view
(4) choose to either resize or move it (or both)
(5) close the outline view by clicking on the editor
(6) use "Ctrl+O" to show the outline
(7) The outline is now in the original place - all your changes have been 
removed/forgotten.

The correct behaviour is seen using the Java Editor.

This behaviour has been seen since the aj icons were included in this outline 
view ( a dev build since M1)
Comment 1 Helen Beeken CLA 2005-07-06 04:26:36 EDT
This is happening because in the copied code, we have lost the following call:

presenter.setRestoreInformationControlBounds(getSettings("outline_presenter_bounds"),
true, true)

in AJSourceViewerConfiguration.getOutlinePresenter(..). It is this method which
sets whether or not we want to restore the bounds. This is exactly the same for
the inplace outline view ("outline_presenter_bounds"), however, that's ok since
we want them to be the same. The user shouldn't be aware that there are two
different versions. If they resize the inplace outline view when they have a .aj
file open, they would expect the inplace outline view to be the same when they
use it in a .java file.
Comment 2 Helen Beeken CLA 2005-07-07 08:21:31 EDT
The fix mentioned in the above comment has been integrated and is contained in
build:

BUILD COMPLETE -  build.446
Date of build: 07/07/2005 10:55:37
Time to build: 47 minutes 21 seconds
Last changed: 07/07/2005 10:40:11

There is also a manual test to go with this fix.