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 78933 - Auto-rename (F2) is not working in column view
Summary: Auto-rename (F2) is not working in column view
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
: 84938 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-22 21:09 UTC by htt
Modified: 2007-01-13 01:07 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description htt 2006-06-22 21:09:20 UTC
Steps:

Open a sample schema.  
In Schema view, switch to tree view.  Select an element; F2
-> auto-rename is enabled for such element
Switch to column view and repeat the above step
-> auto-rename is not working
Comment 1 Nathan Fiedler 2006-07-26 19:51:27 UTC
The F2 to rename is a Swing feature which invokes the cell editor of a JTree and
JTable. Unfortuately, the JList component (upon which ListView is based) does
not support the concept of a cell editor. Given that F2 is a keyboard shortcut
bound by Swing, not by the application, and that this is merely a shortcut to a
feature we provide via the Schema view context menu, I am marking this as a P4
enhancement.

In order to implement this, we would need a specialized JList, ListView, a new
type of cell editor, and likely have to copy code from JDK and NetBeans to make
this work, since the framework is simply not there.

The alternative is to switch the ListView for a TreeView, but we have been there
before, and that had more problems than ListView, which is why we switched.
Comment 2 Nathan Fiedler 2006-09-14 19:08:01 UTC
*** Issue 84938 has been marked as a duplicate of this issue. ***
Comment 3 Jiri Kopsa 2006-09-14 20:06:31 UTC
We have seen Windows users doing F2 quite often. They are simply used to the
fact that it works everywhere - on the desktop, in folders, choosers, trees ...

If this is not working it is a usability issue (users expect this behaviour).

Of course, there is a workaround - going go property sheet - which means more
steps for the user.

Raising this to P3, perhaps this might even be a bug (usability issue).
Comment 4 Nathan Fiedler 2006-11-22 19:06:42 UTC
There may be a way around this problem in ListView/JList, and that is to go back
to using the TreeView (JTree) component. The problem with JTree is that it
always shows the expanders (or at least the lines indicating the sibling
relationships), so we need a way to hide those. Scott Violet has just posted the
source for the Extreme GUI Makeover JavaOne demo, which features a customized
JTree with the expanders positioned in an unusual place. The source may help in
determining if it is possible to hide the expanders (and the sibling lines)
completely. See his blog for the source code:

http://weblogs.java.net/blog/zixle/archive/2006/11/extreme_gui_mak.html

Also, due to issue 78196 and issue 78199, we ought to stop using ListView and go
back to using TreeView, anyway.