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 154900 - "Copy Class" and "Move Class" don't support nested classes
Summary: "Copy Class" and "Move Class" don't support nested classes
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks: 204440
  Show dependency tree
 
Reported: 2008-12-08 09:49 UTC by matthies
Modified: 2011-10-31 14:36 UTC (History)
0 users

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 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".