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 136376

Summary: Context menu for some items don't do anything
Product: cnd Reporter: Stepan Doubrava <sdoubrava>
Component: -- Other --Assignee: Alexander Simon <alexvsimon>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 109495    
Bug Blocks:    

Comment 1 Alexander Simon 2008-06-04 08:55:33 UTC
Document is not public. So some comments:
Some items from the context menu didn't do anything (View Type Hierarchy called on function),
so maybe they should have been disabled.
Comment 2 Alexander Simon 2008-06-04 11:20:24 UTC
Type hierarchy can be showed for a class or structure.
Unfortunately time of detecting object under cursor is too large.
It make a showing pop up menu too slow.
So now it is impossibles hide/gray this menu item.

Comment 3 Alexander Simon 2008-06-04 17:01:16 UTC
See java editor. It also do not disable items in context menu.
It should be common multi language solution:
1 variant: item disabling should be very fast or do not disable item
2 variant: do not disable items
Comment 4 Vladimir Kvashin 2008-06-05 11:46:29 UTC
Determining whether these items are applicable takes too long to be done in the UI thread.

So the best we can do is provide a message in the case they aren't 
(instead of just doing nothing silently).

Stepan, do you agree?

Comment 5 Vladimir Kvashin 2008-06-05 12:01:16 UTC
Determining whether these items are applicable takes too long to be done in the UI thread.

So we have two options:
1) Leaving it as it is (which is quite consistent with Java)
2) Displaying a message in the case the action isn't applicable
(either in the status bar or in dialog - I believe status bar is preferrable)


Comment 6 Vladimir Kvashin 2008-06-05 12:05:06 UTC
I strongly disagree that such defects are really P2.

According to netbeans quidelines
http://qa.netbeans.org/bugzilla/bug_priority_guidelines.html
it isn't more than P3:

> P3:
> Highly visible usability problem
Comment 7 Alexander Simon 2008-06-06 07:52:02 UTC
I close bug because "Type Hierarchy" shows message in the status bar.
I think that solution with message dialog is not user friendly.
So there are no another "appropriate" solution for problem.
I close as invalid.