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 248438

Summary: Ability to rename nonterminal nodes in reduced tree mode
Product: platform Reporter: _ gtzabari <gtzabari>
Component: ExplorerAssignee: Jan Peska <JPESKA>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ gtzabari 2014-11-05 19:33:20 UTC
"Renaming nonterminal package components is not supported in reduced tree mode when subpackages are present."

Please add support for renaming non-terminal nodes.

Use-case: I want to remove a component from the middle of a package name. For example, given package "com.a.b.c.util" I want to be able to rename "com.a.b" to "com.a" so the new package name is "com.a.c.util".

Currently, I have to rename packages individually in "tree" mode.
Comment 1 _ gtzabari 2014-11-05 19:39:11 UTC
Correction, the last comment should read: "I have to rename packages individually in list mode".

On second glance, there is actually a decent workaround for this missing functionality.

1. Go into tree mode.
2. Drag "com.a.b.c" into "com.a"
3. Move all classes from "com.a.b" to "com.a"

This is even more ideal in reduced mode because users won't be able to rename "com.a.b.c" to "com.a.c" if "com.a.b" contains classes. The UI communicates the fact that users must move classes out of this package before renaming it (which is a good thing).