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.
[ BUILD # : 20051013 ] [ JDK VERSION : 1.4.2_xx ] If one is trying to run/debug a target in a build file with several targets, it's not possible to do it using the popup menu since it only lists a limited number of them. Using the Advanced... view could be a workaround, but it does not work for Debug target... (#67508). Even once #67508 is solved, the context menu should probably be scrollable to allow selection of any target.
1. Targets with descriptions are available in the main context menu. Usually there are not so many of these. 2. Targets without descriptions (but not starting with '-') are available in the Other... submenu, to the extent that your screen can display or your Swing L&F implementation can scroll - maybe Swing should autoscroll menus but currently it does not. 3. Any target can be accessed in the Advanced... dialog using a combo box. 4. Or, you can expand the node or use the Navigator panel to select a particular target and Run it.
> ------- Additional comments from jglick Tue Oct 25 22:06:30 +0000 2005 ------ > 1. Targets with descriptions are available in the main context menu. Usually > there are not so many of these. I agree, but I am trying to run/debug the other ones. > 2. Targets without descriptions (but not starting with '-') are available in > the Other... submenu, to the extent that your screen can display or your Swing > L&F implementation can scroll - maybe Swing should autoscroll menus but > currently it does not. I know that, I am talking about a build file such as: https://genesis.dev.java.net/source/browse/*checkout*/genesis/genesis/Attic/master_build.xml (still in progress, btw). Many targets are hidden using 1024x768. Isn't there a way to solve this while not depending on Swing? > 3. Any target can be accessed in the Advanced... dialog using a combo box. Advanced is broken for Debug target (issue # 67508). > 4. Or, you can expand the node or use the Navigator panel to select a > particular target and Run it. Works, but the menu is more handy (using the Navigator takes up too much space and using subnodes means it would be hard to find the build.xml again for a build file as large as the one above). Is there any chance you could reconsider this?
The URL you refer to has length 0, but I can see the contents by browsing to the right place manually. "Isn't there a way to solve this while not depending on Swing?" - not that I know of. I mean, you could make cascading submenus, but you don't know what size they should be (depends on display size and other factors). A scrolling menu would be a nice trick but I don't want to get into that. "using the Navigator takes up too much space" - doesn't take any space if you keep it in sliding mode. When you want to run a target, make sure either the build script is selected in Projects/Files/Favorites or open in the editor; then press Ctrl-7, use arrow keys and/or Page Up/Down and/or alphabetic keys to do quick search; and Shift-F10 Down Enter to run. Not actually any slower than using the context menu for a keyboard user, and similar with the mouse.