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 104387 - Useless "Set Action ..." popup menu item in project without appframework support
Summary: Useless "Set Action ..." popup menu item in project without appframework support
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Joshua Marinacci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-21 08:48 UTC by Jiri Vagner
Modified: 2007-07-20 09:09 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 Jiri Vagner 2007-05-21 08:48:04 UTC
Popup menu item "Set Action ..." in project without appframework support is
useless and confusing, especially for beginners. 

Is it possible to disable (hide) this item from popup menus in non-appframework
projects?

Or maybe cool solution would be "autocall" action "Events-> Action->
actionPerformed " after executing "Set Action ..." menu item in non-appframework
project.

Steps to reproduce ....
 - Create simple Java Application project
 - Add jframe
 - Add jbutton into jframe
 - Invoke popup menu above jbutton
 - Click "Set item ..." in popup menu of jbutton

Beginner: Hmmm ..."Set action" for my button, well ... this is place, where I
will add handler for button click, hmmm, oups, ..."Custom Editing of this
Property is not supported" ... hmmm, what is disabled? ... it is first item in
menu, action for button, it should be simple to add action for my button ...
hmmm .... (user is confused)  ;)
Comment 1 Joshua Marinacci 2007-06-01 04:25:02 UTC
I agree this is bad. However, shouldn't it just call the normal action editor that is available in non-
appframework projects?
Comment 2 Joshua Marinacci 2007-06-28 22:44:05 UTC
Tomas has committed code which will prevent the 'set action..'  menu item from being added to the context menu if the action property does not have a 
custom editor. This fixes the bug.
Comment 3 Jiri Vagner 2007-07-20 09:09:51 UTC
Verified

Product Version: NetBeans IDE Dev (Build 200707190325)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)