You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an interesting issue where a popup menu item was getting its enabled status wrong. The correct popup menu was being made visible but it turned out that on the application's main toolbar was a submenu with an item with the same text, and it was that item that was being picked up by the JMenuItemMatcher, which matches the menu item text alone even if the path is wrong. Setting the context to the JTree's container didn't help.
As a quick fix I am locally using mtbc/openmicroscopy@5535130 that additionally checks that the JPopupMenu's invoker is the specified JTree, but it's a bit hacked together. It might be good if the SwingLibrary tree node popup stuff also only matched menu items that come from menus invoked by the tree?
The text was updated successfully, but these errors were encountered:
I had an interesting issue where a popup menu item was getting its enabled status wrong. The correct popup menu was being made visible but it turned out that on the application's main toolbar was a submenu with an item with the same text, and it was that item that was being picked up by the JMenuItemMatcher, which matches the menu item text alone even if the path is wrong. Setting the context to the JTree's container didn't help.
As a quick fix I am locally using mtbc/openmicroscopy@5535130 that additionally checks that the JPopupMenu's invoker is the specified JTree, but it's a bit hacked together. It might be good if the SwingLibrary tree node popup stuff also only matched menu items that come from menus invoked by the tree?
The text was updated successfully, but these errors were encountered: