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 - There is no popup menu available at the FXD/Z editor tabs
Summary: There is no popup menu available at the FXD/Z editor tabs
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-14 09:17 UTC by pbenes
Modified: 2010-04-15 16:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing java editor tab's popup menu (76.68 KB, image/png)
2010-04-14 09:17 UTC, pbenes
Details

Note You need to log in before you can comment on or make changes to this bug.
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.