This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 44542 - Disable View|Editors menu if no editors opened [was:Menu View|Editors doesn't work]
Summary: Disable View|Editors menu if no editors opened [was:Menu View|Editors doesn't...
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: UI
: 44688 44881 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-08 16:16 UTC by zikmund
Modified: 2008-12-22 17:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2004-06-08 16:16:08 UTC
Build 200406080606

Invoke menu View | Editors. No submenu appears.

(Hope I choosed the right component/subcomponent)
Comment 1 Marian Mirilovic 2004-06-08 16:26:39 UTC
Jano, 
I have never seen UI specification for this "feature" so I don't know
how it should work ?

So what is expected behaviour ?

Karel,
have yuo had opened some editor ? (I think no, right ? ;)
Comment 2 Milos Kleint 2004-06-09 07:31:10 UTC
is part of multiview UI spec I believe.
reassigning
Comment 3 Marian Mirilovic 2004-06-09 08:43:06 UTC
Milos,

thanks , you are right, it's a part of Multiview UI specification :
http://ui.netbeans.org/nonav/docs/ui/switchers/index.html

If I understand it right, it's context sensitive, measn if opened and
selected tab in the editor is java, the menu contains only Code item,
if there is selected form file, menu contains Code and Design, right ?

So what about initial state if there is no opened file in the editor ?  
Comment 4 Milos Kleint 2004-06-09 08:45:26 UTC
no idea. either empty or have code unselected or something.. assigning
to dusan for clarification and update of UI spec.
Comment 5 dpavlica 2004-06-09 13:09:04 UTC
It's simple:
No opened file in the Editor -> no Editor is visible -> Editors menu
item is disabled

You can find it in the spec now.
Comment 6 Marian Mirilovic 2004-06-09 13:12:26 UTC
Dusan,
Thanks ;)

Comment 7 zikmund 2004-06-09 13:27:17 UTC
BTW: I noticed that it is empty also when java file is opened
(probably no alternate editors are allowed).
Does it mean, that there should be one (selected) submenu item
"Source"? Now there's still nothing and I didn't find any information
in UI spec.
Comment 8 Milos Kleint 2004-06-09 13:30:53 UTC
fixed in trunk.

Comment 9 zikmund 2004-06-10 12:24:46 UTC
It is well disabled on JDK 1.5 (build 1.5.0-beta2-b51a).

But it is NOT disabled on JDK 1.4.2_04:
The View|Editors still contains "Source" item in submenu (even when no
any editor is opened). This item has a radio button, but on choice it
works like a checkbox: switching have/don't have circle sign.
Comment 10 zikmund 2004-06-10 12:54:48 UTC
Please forget the JDK version information - it seems to be more
complicated with RANDOM behavior.

My scenario:

1) Run IDE with new user dir
2) Welcome screen is opened
3) View|Editors submenu has "Source" item which has radio button
behaving like checkbox (has/doesn't have the circle sign)
4) close Welcome screen
5) RANDOM:
 A) View|Editors is disabled - it has no-gray arrow icon on the right
">" and has visualization problems as described in issue #44688.
 B) View|Editors is enabled
[A happens more than B: approx 8 vs. 2 occurences]
6) Continue by creating a new J2SE project (which opens java file)
7) View|Editors behaves like in (5) (depends on A or B)
8) Close opened java file
9) View|Editors behaves still like in (5) (depends on A or B)

Tested on WinXP JDK 1.5 & 1.4.2_04.

Conclusion:
- Disabling has random behaving.
- Don't know any case (java/HTML/property file/property editor/JFrame
form file) how to enable View|Editors after it was disabled at startup
(5A case) - but it's probably my wrong feature understanding.
Comment 11 Marian Mirilovic 2004-06-10 13:28:17 UTC
*** Issue 44688 has been marked as a duplicate of this issue. ***
Comment 12 Milos Kleint 2004-06-16 14:58:36 UTC
*** Issue 44881 has been marked as a duplicate of this issue. ***
Comment 13 Milos Kleint 2004-06-30 14:12:16 UTC
hopefully fixed this time.
Comment 14 zikmund 2004-07-20 11:45:22 UTC
Verified.

BTW: The radio button still behaves as checkbox on WinXP (Solaris
works fine). But it's another bug.