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 7405

Summary: Improper copy item in popup menu
Product: java Reporter: Petr Slegr <pslegr>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: minor    
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Slegr 2000-08-16 15:54:31 UTC
Subnodes variables, methods, constructors,... of class file node have enabled
copy action although it does not have sense.
Comment 1 Tomas Hurka 2001-01-12 13:18:59 UTC
I suggest to solve it by diabling copy action by this patch:

Index: openide/src/org/openide/src/nodes/DefaultFactory.java
===================================================================
RCS file: /cvs/openide/src/org/openide/src/nodes/DefaultFactory.java,v
retrieving revision 1.25
diff -r1.25 DefaultFactory.java
276a277,283
>
>         /** Factory node cannot be copied
>         * @return <code>false</code>
>         */
>         public boolean canCopy () {
>           return false;
>         }
278d284
<
Comment 2 Svata Dedic 2001-01-15 14:28:59 UTC
Actually, I've removed Copy action from the list of actions provided by the
node. Thanks, Tomas.
Comment 3 Jan Becicka 2001-02-02 13:27:59 UTC
[010201_1] Verified
Comment 4 Quality Engineering 2003-06-30 16:44:00 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.