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 30937 - 'Cancel' doesn't work in 'Set Project Main Class' dialog
Summary: 'Cancel' doesn't work in 'Set Project Main Class' dialog
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: -S1S-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2003-02-11 11:50 UTC by Oleg Khokhlov
Modified: 2004-04-19 16:40 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 Oleg Khokhlov 2003-02-11 11:50:03 UTC
It happens when I try to execute project without
project main class:
1. Mount project without project main class.
2. Go to 'Project->Execute project'.
3. 'Set Project Main Class' dialog appears.
4. Select any node (which can be set as a main
class) and click 'Cancel' button.
Expected result: main class isn't set and project
isn't executed.
Actual result: main class is set (last selected
node) and project is executed.

dev build 200302110100, JDK 1.4.1
Comment 1 Vitezslav Stejskal 2003-02-19 17:24:41 UTC
Evaluation: annoying, but hramless. I am going to fix it for Nb 3.5.
Comment 2 Milan Kubec 2003-02-20 10:15:11 UTC
Well, I don't fully agree with harmless. If user selects some class
with significant impact on user data (deleting, processing, upload,
...) and then realizes that it should not be executed, selects Cancel
and IDE executes that class anyway - it won't be harmless - somebody
would want to eat keyboard :-)
Comment 3 Vitezslav Stejskal 2003-02-20 14:26:47 UTC
Fixed in trunk. The mainclass property is modified only when user hits
OK button.
Comment 4 Milan Kubec 2003-03-03 15:55:20 UTC
Verified.