PR# 13156 Editor view reset to text view in flat mode

Problem Report Summary
Submitter: juliant
Category: EiffelStore
Priority: High
Date: 2007/06/14
Class: Bug
Severity: Serious
Number: 13156
Release: 6.0.69069
Confidential: No
Status: Closed
Responsible:
Environment: win64 and linux
Synopsis: Editor view reset to text view in flat mode

Description
The editor behaves strange when the toolbar buttons for the different views are removed:

When the view is changed via the context menu to flat, and the editor losses and regains focus (by clicking on any other tool and on the editor again), then the editor view goes back to "Text". By opening another class it goes to flat again, and when the editor losses and regains focus, it switches to text again.

See the "To Reproduce" to try yourself.

It only happens when the toolbar buttons are removed!
To Reproduce
1)
* Remove the toolbar buttons for the different views (Text/Clickable/Flat/...)
* Open ANY
* Right-click and select View > Flat
* Click on any other tool so the editor looses focus
* Click on editor again
> Editor goes back to text view

2)
* Remove the toolbar buttons for the different views (Text/Clickable/Flat/...)
* Open ANY
* Right-click and select View > Flat
* Right-click and select View > Text
* Right-click and look at the View menu: "Flat" is still selected
* Add the toolbar buttons for Text and Flat view: both are "pressed"
Problem Report Interactions
From:ted_eiffel    Date:2007/07/10    Status: Closed    Download   
Fixed in rev#69358. Thanks for reporting.