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 51987 - Support moving inner class to new top level class in package
Summary: Support moving inner class to new top level class in package
Status: RESOLVED DUPLICATE of bug 56475
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-01 19:14 UTC by ats37
Modified: 2007-04-03 18:02 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 ats37 2004-12-01 19:14:20 UTC
I have a class that contains an inner class which
I now wish to make into another top-level class in
the package.  In Netbeans 3.6, I would have
expanded the nodes the relevant Explorer
filesystem down to the inner class, right-clicked
and Cut, then Paste on the package/directory's
Explorer node.  In 4.0 I can't do this, as the
class nodes only have Open and Delete options
(only the .java file node has Cut & Copy).

I'm assuming this is because moving classes should
be done with the Refactor options now (please
reassign the issue to a more relevant category if
this is not the case), however, the "Refactor ->
Move Class" option is disabled on the inner class.
   So it appears there's no quick way to move an
inner class anywhere else - I had to resort to
Find Usages, create a new class, cut & paste the
code in the editor, then amend the other classes
which had been affected...
Comment 1 Jan Becicka 2005-05-25 14:10:40 UTC
We have proposal for this.

*** This issue has been marked as a duplicate of 56475 ***