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 67847

Summary: Menu item Show CVS Status Labels not active
Product: platform Reporter: Milan Kubec <mkubec>
Component: Window SystemAssignee: Milos Kleint <mkleint>
Status: VERIFIED FIXED    
Severity: blocker CC: msandor
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 68438    
Bug Blocks:    
Attachments: screenshot

Description Milan Kubec 2005-10-31 16:03:56 UTC
[dev-200510301900, JDK 1.5.0_05]

Menu item Show CVS Status Labels is not responding to user actions - hovering
mouse, clicking. The menu item is not disabled, it just doesn't respond and
sometimes it disapears when the menu is shown, attaching screenshot.

Steps to reproduce:
1) Start IDE
2) Disable Memory meter toolbar <- the cause!
3) Open the menu View and hover mouse over the "Show CVS Status Labels"
Comment 1 Milan Kubec 2005-10-31 16:04:46 UTC
Created attachment 26492 [details]
screenshot
Comment 2 Maros Sandor 2005-10-31 17:18:52 UTC
Cool. I wonder how those components interact. Can someone from openide clarify?
My action is
org.netbeans.modules.versioning.system.cvss.ui.actions.ShowTextAnnotationsAction
in javacvs/cvsmodule. I have found out that if I do not create new instances of
my checkbox menu item and always return the same instance, the problem
dissappears. I am just letting you know that there may be a potential problem.
Please evaluate and reassign back, I will add menu item caching afterwards.
Comment 3 Milos Kleint 2005-11-01 07:06:34 UTC
reassigning
Comment 4 Milos Kleint 2005-11-01 10:40:26 UTC
it is most probably a validation/repaint problem. The old instance is replaced
by new one when the menu is about to be shown. 
The memory toolbar item is functions as a permanent, repetitive repainter
sometimes..
Comment 5 Milos Kleint 2005-11-01 14:45:37 UTC
fixed.

Checking in loaders/src/org/openide/awt/DynaMenuModel.java;
/cvs/openide/loaders/src/org/openide/awt/DynaMenuModel.java,v  <-- 
DynaMenuModel.java
new revision: 1.6; previous revision: 1.5
Comment 6 Milan Kubec 2005-11-03 08:42:11 UTC
Verified in dev-200511011936.