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 47663 - [40cat] the context menu in the editor does not include "compile" - it should!
Summary: [40cat] the context menu in the editor does not include "compile" - it should!
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker with 2 votes (vote)
Assignee: Gabriel Tichy
URL:
Keywords:
: 47632 48164 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-23 05:45 UTC by coldrick
Modified: 2007-11-05 13:44 UTC (History)
3 users (show)

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 coldrick 2004-08-23 05:45:16 UTC
[ BUILD # : beta 1 ]
[ JDK VERSION : J2SE 1.4.2_05 ]

summary says it all
Comment 1 Martin Roskanin 2004-08-23 09:02:07 UTC
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>
Comment 2 Miloslav Metelka 2004-08-24 13:25:31 UTC
*** Issue 47632 has been marked as a duplicate of this issue. ***
Comment 3 Martin Roskanin 2004-08-30 13:54:50 UTC
*** Issue 48164 has been marked as a duplicate of this issue. ***
Comment 4 Gabriel Tichy 2004-09-01 16:43:03 UTC
I do not think this action should be placed it the contextual menu. It has easy shortcut 
and is already accessible from main menu.
Comment 5 Martin Roskanin 2004-09-01 16:45:07 UTC
OK, resolving as invalid
Comment 6 coldrick 2004-09-02 03:51:23 UTC
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.
Comment 7 Martin Roskanin 2004-09-02 09:07:58 UTC
Gabo, please resolve. Possibly update ui-spec. Thanks.
Comment 8 Gabriel Tichy 2004-09-02 09:27:16 UTC
Context menus are always a matter of compromise.
Excuse me, what do you mean by "slow menu choice"? 
Comment 9 coldrick 2004-09-06 01:29:07 UTC
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.
Comment 10 thunderjon 2004-09-08 01:17:45 UTC
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.
Comment 11 jrojcek 2004-09-17 15:58:44 UTC
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.