PR# 15483 Open layout is disabled even if you have an entry

Problem Report Summary
Submitter: manus_eiffel
Category: EiffelStudio
Priority: Medium
Date: 2009/03/06
Class: Bug
Severity: Serious
Number: 15483
Release: 6.4.7.7597
Confidential: No
Status: Closed
Responsible:
Environment: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
Synopsis: Open layout is disabled even if you have an entry

Description
I can't open my layout because the submenu is layout.
To Reproduce

										
Problem Report Interactions
From:larryl    Date:2009/09/28    Status: Closed    Download   
Thanks Paul and Manu

This bug is fixed in revision#80924.

From:paulbates    Date:2009/09/25    Download   
Larry, I just noticed an oddity and showed Manu and now it's clear how to reproduce the problem.

First, it's best to start with a clean profile with no normal/editor mode layouts. Okay, now there is no layouts, do the following:

1. Open a project in ES.
2. Switch to debug mode.
3. Save a layout, named 'debug_mode'
4. Exit ES, still in debug mode.

5. Reopen ES and the project, and it should be in debug mode.
6. The open menu is now disabled.

The cause is because you do not update the menu based on the set mode, and you also do not update the menu when the mode is switched. When ES is started in debug mode, the menu is disabled because it is generating a menu for the normal mode, which there are none.

From:manus_eiffel    Date:2009/09/25    Download   
You might need to be in debug mode and to load an actual EiffelStudio project.

From:paulbates    Date:2009/09/25    Download   
I've not been able to reproduce the bug either?!

From:larryl    Date:2009/09/25    Download   
Hi, Manu,

Follow your reproduce steps, the bug is still not reproducible in my Eiffel Studio. Reproduce video attached. Maybe you have some special settings when the bug is reproducible? If you delete everything in 

C:\Users\your_name\AppData\Local\Eiffel Software\eiffel65

Then can you reproduce the bug?


Attachment: bug15483_2009-09-25_1523.7z     Size:4122819
From:manus_eiffel    Date:2009/09/24    Download   
I've been able to reproduce this problem quite easily and found the workaround. Save a layout if you do not have one. Then exit EiffelStudio and restart it, now the `open layout' menu is grayed out. To enable it, save a dummy layout and then now the `open layout' menu entry is not grayed out and you can select your layout.


From:larryl    Date:2009/03/22    Download   
Yes, the code `{EB_DEVELOPMENT_WINDOW_MENU_BUILDER}.add_exist_layouts_to' disable the menu entry. And this is the only place disable the menu entry.

From:manus_eiffel    Date:2009/03/19    Download   
I'm not sure how to reproduce, I didn't do anything special. Here is a screenshot. It happens in both my workbench and released version of EiffelStudio. I think the question we should ask is whether or not the code disable the entry, and if so where. Then I can put a breakpoint and debug.

From:larryl    Date:2009/03/11    Download   
Could you tell me how to reproduce this bug? It works fine at my side...

Thanks

From:manus_eiffel    Date:2009/03/09    Download   
Yes, in that dialog there is my layout.

From:larryl    Date:2009/03/09    Status: Analyzed    Download   
I don't know how to reproduce this bug...

Just to make sure, If you select menu entry "Save Layout As", is(are) there layout(s) available in the bottom list of pop-up dialog ?

From:manus_eiffel    Date:2009/03/06    Download   
I meant the submenu is grayed out.