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 75917

Summary: Cannot create new class in bluej view
Product: ide Reporter: Jaromir Uhrik <juhrik>
Component: BlueJAssignee: issues@ide <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot attached...

Description Jaromir Uhrik 2006-05-04 13:10:29 UTC
[own build of 2006-05-03]
It is not possible to create new class in BlueJ View when vertical scrollbar is
visible. It's because the popup menu is different when user invokes it at free
space vs. line containing some object (class, html file, xml ...). When the pane
is full of classes then popup menu doesn't contain item "New" (because there is
no free space). See atatched screenshot.
Comment 1 Jaromir Uhrik 2006-05-04 13:13:52 UTC
Created attachment 30242 [details]
Screenshot attached...
Comment 2 Milos Kleint 2006-05-05 13:12:12 UTC
not really a showstopper IMHO. people ought to use the toolbar or menu for
creating new files.

technical background:
the view is done using ListView with is basically a list. the active context for
popup menus is the node which it acts upon, which is usually the selected node.
that's file in bluej view. files don't have a "new file" action on popup. only
folders have. 
Now how come sometimes the new action is there? when the list is not long enough
to fill whole space, then the remaining whitespace seems to have the parent node
as context. In this case it means the folder.
And when the list is longer than available space, then of course the scrollbar
appears and there is no remaining whitespace.

So I would consider this to be a bug in the sense that it's possible to get the
popup on whitespace and that is allows to create the file there that way and
access the actions of the folder. The fix would be to forbid this behavious and
make it consistent.

Comment 3 Jaromir Uhrik 2006-05-23 10:53:11 UTC
*** Issue 75985 has been marked as a duplicate of this issue. ***
Comment 4 Antonin Nebuzelsky 2010-04-08 11:59:39 UTC
Change of the default owner.