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 67509 - [50cat] No way to run/debug some targets with large ant file using the menu
Summary: [50cat] No way to run/debug some targets with large ant file using the menu
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 67508
Blocks:
  Show dependency tree
 
Reported: 2005-10-25 18:17 UTC by misterm
Modified: 2005-10-26 01:18 UTC (History)
0 users

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 misterm 2005-10-25 18:17:43 UTC
[ 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.
Comment 1 Jesse Glick 2005-10-25 23:06:30 UTC
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.
Comment 2 misterm 2005-10-26 00:46:50 UTC
> ------- 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?
Comment 3 Jesse Glick 2005-10-26 01:18:33 UTC
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.