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 6558 - User should not be allowed to customize listener interfaces in bean patterns.
Summary: User should not be allowed to customize listener interfaces in bean patterns.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-05-05 22:21 UTC by Jan Becicka
Modified: 2007-09-26 09:14 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 Jan Becicka 2000-05-05 22:21:11 UTC
1. Using Explorer create new Bean Pattern -> Event Source. As listener interface select e.g. java.awt.event.MouseListener.
2. Now expand MouseListener node. Using popup menu | customize you can edit methods properies (such as name etc...), but this throws exception
org.openide.src.SourceException:


see attachment
Comment 1 Martin Matula 2000-07-14 12:29:59 UTC
[Martin Matula] Exception raises because there is no java file with
MouseListener definition available. This is bug in java module. The module
should disable Customize action for methods sources of which are not available.
When trying to find out where the bug is, I also find out, that the pop-up menu
item "Customize" has strange behavior. When I rightclick on the node, that does
not support "Customize" action, I get menu without Customize item, but when I
then rightclick to anythink that supports customization, I get menu without
Customize item anyway... You can reproduce it trying to rightclick on "methods"
node in any class and then rightclick on any method under that methods node.
Comment 2 Svata Dedic 2000-07-20 10:20:59 UTC
The exception was fixed -- exceptions can still be thrown when customizing
read-only node (if the underlying implementation throws an exception).

Customize should remain enabled, because the user can see interface's properties
in different (maybe more readable) way as opposed to the property sheet. Maybe
`Customize' should be replaced by some other word for read-only nodes.
Comment 3 Marek Grummich 2000-07-25 09:29:59 UTC
Priority is changed to P4 (normal).
Comment 4 Svata Dedic 2001-01-17 16:12:59 UTC
Customize action was disabled for r/o nodes - that affects JDK (standard)
listener interfaces too.
Comment 5 Jan Becicka 2001-01-31 14:44:59 UTC
[010130_1] Verified
Comment 6 Quality Engineering 2003-07-01 13:15:10 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.