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 # : beta 1 ] [ JDK VERSION : J2SE 1.4.2_05 ] summary says it all
Adding Petr H. to cc in case he wants to add some comment, he removed the compile and execution actions from context menu, originally in stavbicka branch... I believe this was because of new project infrastructure. Context menu currently contains "Run Single" action as the substitution of "execute" action. Gabo, what about "Compile Single" action to be presented in context menu? Now it is accessible in Main Menu/Build/Compile <file>
*** Issue 47632 has been marked as a duplicate of this issue. ***
*** Issue 48164 has been marked as a duplicate of this issue. ***
I do not think this action should be placed it the contextual menu. It has easy shortcut and is already accessible from main menu.
OK, resolving as invalid
Apologies if I'm stepping on toes by reopening: it appears that at least two other people logged this as a problem, and this is *removal* of an ease-of-use feature that we have had in previous versions for as long as I can remember. Context menus have always been a strength of nb, particularly for the new user: telling the user to do a (slow) menu choice, or to learn yet another keystroke, is *not* a good idea (don't get me wrong, the menu item and the keystroke should remain for those who want to use them). Please reconsider.
Gabo, please resolve. Possibly update ui-spec. Thanks.
Context menus are always a matter of compromise. Excuse me, what do you mean by "slow menu choice"?
Sorry for the slow reply - both I and my email access have been sick. Should have been more clear - I simply meant that going up to the menu bar to the build menu is definitely slower - and more distracting - than a simple right-click in the editor.
Especially in an XP cycle I need to quickly compile individual files. It seems logical that if run is here compile should be as well (probably preceding it) as it makes sense that someone may need to compile several times before attempting to 'run' and especially with JSP files since run triggers Tomcat. Actually I wondered at first if I could even compile a JSP since it did appear in the editor context menu. From a usability standpoint for others I think this just makes sense to implement.
Looking at a Java file in NB3.6 editor, there is no Compile action in the contextual menu. In JSP file, there is a "Validate" action, which is an equivalent to the current Compile action. Please note, that the Validate action isn't present in the main menu in NB3.6, but the Compile action is present in the main menu in NB4.0. The new contextual menu in Java file (NB4.0) contains actions that are either context sensitive to the *selected source code* in the editor or directly manipulate the source code (Fix Imports). The only exception is "Run File" which we added due to the fact that it has been quite hidden and hard to access in "Run Other" submenu. In the future we might get rid of this action as well if we make the "Run File" action easily accessible from the main menu. Adding more items into the editor contextual menu would make the actions that are source-code-selection-sensitive less accessible (more items means hard to find and use those items that are needed), that is why we don't add the "Compile" action into the editor contextual menu.