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.
[nb winsys](031022), [jdk1.4.2_02] see attached screenshot
Created attachment 11948 [details] Document Window Menu
This is a problem of CloneableEditor which adds FilesystemsAction into its popup actions. That action is JInlineAction which in that case is empty, but the popup creator doesn't know about that and includes it there which causes the double separators to appear.
Looking at the problem...
It seems there is one explicit separator forced by the CloneableEditor and another one added at the top of JInlineMenu (which is used as a FSAction presenter). If I remove the explicit one, JIM still adds it, but it can be fixed to not add it if it is actually empty...
The CloneableEditor part of the problem is fixed. The rest of the problem is that JInlineMenu keeps adding "pre-separator" even when it have no items itself and is the last entry. openide/src/org/openide/text/CloneableEditor.java,v1.64
I guess this won't be fixed for NB4.0 , please evaluate again.
It looks like it has been fixed. Also the menu has been redesigned for NB5.0. It works in NB5.0(200510171800), JDK1.5.0_06
verified in NB5.0(200510190645)