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 - Ability to rename nonterminal nodes in reduced tree mode
Summary: Ability to rename nonterminal nodes in reduced tree mode
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Peska
Depends on:
Reported: 2014-11-05 19:33 UTC by _ gtzabari
Modified: 2014-11-05 19:39 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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).