[ https://issues.apache.org/jira/browse/PIVOT-737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028484#comment-13028484 ]
Sandro Martini commented on PIVOT-737: -------------------------------------- Hi Greg, I'll try to clarify the part related to the Contextual menu (I agree tha wasn't so clear, even for me, now that I re-read it :-) ): in the Nabble thread ( http://apache-pivot-users.399431.n3.nabble.com/Disable-Menu-Item-td2865710.html ) Raffaele said: > You can use the context-menu example provided by pivot tutorial. I just added > the line of code: whatIsThisMenuItem.setEnabled(false); to the file ContextMenu.java (at line 40). The context menu is still visible and working. Can you reproduce it? > > In the meanwhile I found the problem. If the action is removed then > setEnabled(false) warks as it should. Apparently you must have a null action, > or the menu item is forced to be enabled. Is this true? > etc ... So this part of my proposal was that if I add the line whatIsThisMenuItem.setEnabled(false); in the ContextMenus Tutorial, the context menu is visible the same ... is it a bug ? And last, if Yes, what do you think if I'd add a radio button (on top of the window containing the components of that Tutorial) so we could see what happens enabling/disabling the contextual menu ? Otherwise I could add a similar Test class, more in line with user tests. I hope to be clear this time :-) ... what do you think ? > TerraTableViewSkin opens a TableViewRowEditor listening to both mouse buttons > ----------------------------------------------------------------------------- > > Key: PIVOT-737 > URL: https://issues.apache.org/jira/browse/PIVOT-737 > Project: Pivot > Issue Type: Bug > Components: wtk-terra > Affects Versions: 2.0 > Reporter: Raffaele Borrelli > Assignee: Sandro Martini > Fix For: 2.0.1 > > > The default TerraTableViewSkin initiates a TableViewRowEditor without regard > for which mouse button is pressed. > The problem is in the functions mouseClick() and mouseDown() which should be > fixed to distinguish between left and right mouse click. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira