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 5524 - "Execute" command should be placed in the popup menu of ClassElement
Summary: "Execute" command should be placed in the popup menu of ClassElement
Status: CLOSED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-01-22 23:04 UTC by _ ttran
Modified: 2008-12-23 10:59 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 _ ttran 2000-01-22 23:04:48 UTC
... now it`s placed in the SourceElement`s popup. I think it`s better to be on the class. One wants to execute the class not the source file, even though in a source file there can be at most one pu
blic class with public static main()

[jglick] There was a discussion about this on EAP. Actually there can be inner classes (public static) with main-methods which Java lets you execute. But the IDE does not. Currently there is just one
ExecSupport per file, and this ExecSupport runs the main class and there is no way to configure it to run an inner class (other than writing your own executor, which is easy to do). In general adding
exec supports for inner classes would require some API changes (probably) and not really be very nice, and I am not sure if it is worth it at all. So unless executing inner classes is actually support
ed (that would be a long-term suggestion, reopen this one if you want to), IMHO there should not be execute action on the class nodes, because it would be misleading.
Comment 1 Quality Engineering 2003-07-02 16:49:44 UTC
Resolved for 3.4.x or earlier, no new info since then -> verify
Comment 2 Quality Engineering 2003-07-02 17:18:36 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.