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 184109

Summary: There is no popup menu available at the FXD/Z editor tabs
Product: javafx Reporter: pbenes <pbenes>
Component: UnsupportedAssignee: Andrew Korostelev <akorostelev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot showing java editor tab's popup menu

Description pbenes 2010-04-14 09:17:52 UTC
Created attachment 97287 [details]
Screenshot showing java editor tab's popup menu

Please take a look at the attached screenshot that shows the pop menu actions available for java editor tabs. The same actions (probably with the exception of the 'Clone document') should be available for the FXD/Z tabs as well.
Comment 1 Andrew Korostelev 2010-04-15 16:15:44 UTC
fixed in trunk after beta:
http://hg.netbeans.org/javafx/rev/4b397054baf4 (commited with incorrect issue in comment).

I think popup menu was hidden because there is no legal way to hide 'clone' action in cloneable top component actions list.
This fix has 2 ections I treat as illegal:
- search clone action by comparing class.getName() value. Should compare class itself (using instanceof), but ActionUtils$CloneDocumentAction is private class.
- I remove clone action class, because I can't just disable it.
while I call things incorrect by design, they can't cause compilation or runtime error.

CloneableEditor doesn't give access to manage clone action, so the only correct way should be not to extend cloneable editor.
But goods we get by extending it are incomparably more important then one clone action.