Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 154900 - "Copy Class" and "Move Class" don't support nested classes
"Copy Class" and "Move Class" don't support nested classes
Status: NEW
Product: java
Classification: Unclassified
Component: Refactoring
All All
: P3 (vote)
: 7.2
Assigned To: Ralph Ruijs
Depends on:
Blocks: 204440
  Show dependency treegraph
Reported: 2008-12-08 09:49 UTC by matthies
Modified: 2011-10-31 14:36 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description matthies 2008-12-08 09:49:11 UTC
Two related issues:
(1) "Copy Class" and "Move Class" can't be invoked on a nested class.
(2) "Copy Class" and "Move Class" can't copy/move into a nested class scope.

One common use case is cloning a nested class, for which you'd need both (1) and (2).
Comment 1 Jan Pokorsky 2008-12-08 13:44:19 UTC
Copy and Move refactoring are implemented for java files not classes for now.

It is possible to use Move Inner To Outer + Move refactorings as a work around for Move Nested.
Comment 2 matthies 2008-12-08 13:54:40 UTC
For the most interesting use cases there is no workaround as there is no "Move Outer To Inner".

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo