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.
A quick watch facility would be nice. Quick watch would take the selection and immediately add it to the watch window. Almost everytime I use Add Watch I have selected a variable and want to watch just it. I have to go through the little dialog and click OK. Its a nuisance for something I do about 95% of the time.
We already have somethink like quick watch. Just select some variable or expression in editor, put mouse cursor on selected text and wait a second. Tooltip with value will occure. But if you can only jump over Add Breakpoint dialog we can suppress it if user selects some expression in editor before. I would like to see opinion of our UI team first...
i've been thinking about this. It does seem a little unnecessary to show the watch dialog when something is selected in the editor. On the other hand, there is the "tool tip" watch style that Jan mentioned, and dismissing the watch dialog takes only a press of the enter key. The conern I've come to have is that ifthe user wants to add some watch without by typing a value into the watch dialog, but happens to have other stuff in the editor, it will be a nuisance to have to deselect whatever is selected so that the watch dialog behaves "correctly". Perhaps the "watch" action on the toolbar should change to bypass the dialog. This would provide a streamlined way to add a watch.
Hmm, I thought I updated this isssue, but apparently not. The tooltip evaluation is very useful but serves a different purpose. It is good for a "one shot" evaluation. In my scenario I want to add something to the watch window for all the reasons that the watch window exists. The request is for a more efficient way to add things to the watch window. What I'm suggesting is that an additional action be created that does the Quick Add. The current action that involves the dialog still needs to exist. David John has suggested that the current Add Watch be on the menu and that the quicker one be on the toolbar. Interesting suggestion.
Target milestone was changed from '3.4' to TBD.