score:45
I'm sorry I gave the wrong answer before. I rechecked, and it didn't do quite want you want. I did find a solution for you though, again, in 3.4.
Highlight the class, do a copy CTRL-C or cut CTRL-X, click on the package you want the class do go into, and do a paste, CTRL-V. Eclipse will auto generate the class for you.
Convert Member Type to Top Level doesn't quite work. Doing that will create a field of the outer class and generate a constructor that takes the outer class as a parameter.
score:0
Can be done in 2 refactorings :
Convert Member type to top level
Move
score:1
Right-click the class name (in the source code) and choose Refactor -> Convert Member Type to Top Level. It doesn't let you choose the package, though.
score:1
For IntelliJ IDEA / Android Studio: Refactor -> Move -> Move inner class MyInnerClass to upper level
score:37
In Eclipse 3.6, you can do: Refactor -> Move type to new file
Source: stackoverflow.com
Related Query
- Can eclipse extract a second class in class file to its own file
- How can I find an anonymous inner class in Eclipse given only its synthetic name (Class$N)?
- Extract values from a .properties file stored in Eclipse project class path using angularJS
- How can I set a class to always search in its own project folder for a given path?
- How can Extract Class Eclipse IDE refactoring functionality be useful?
- How can I create my own JAR file for an Android application using Eclipse or Ant?
- Is there any way in eclipse by which we can (ctrl+click) on a class attribute in jsp file and get the desired css definition which is linked with it?
- How can I change the name of *.xml file in the eclipse IDE's project explorer with one of its element
- How can I find all the classes which used a known class as its property in eclipse
- Does eclipse have a free Java refactoring plugin that can extract a class including both fields and methods?
- How to rename a class and its corresponding file in Eclipse?
- How can Eclipse create a class with unresolved compilation problems?
- How can I make Eclipse file search not include svn directories?
- Generate interface from solid class file in Eclipse
- "The public type <<classname>> must be defined in its own file" error in Eclipse
- How can I disable compiler warnings in Eclipse on a file specific basis?
- Can we call another project java class from our project in eclipse
- Why Eclipse doesn't show local variables values when I debug class file from JDK?
- Can you define your own template variables in Eclipse
- Eclipse Build Error "A class file was not written. The project may be inconsistent, if so try refreshing this project and building it"
- Can eclipse monitor an arbitrary log file in the Console view?
- Using Android library in eclipse and jumping to class files instead of source file that is within eclipse workspace
- Can eclipse automatically rename the unit test class when the class under test is renamed?
- Can not launch android project from xml layout file in Eclipse
- Eclipse : manually select main class for executable jar file
- Can Android Studio Automatically Extract References From a Layout XML file into the Activity java file?
- How can I change Eclipse color scheme for a specific file extension?
- Re-building a deleted class file in Eclipse
- How do I build an Eclipse RCP app so that its features can be updated automatically?
- Does Eclipse ship ant with its own distribution?
More Query from same tag
- Android : R class stopped getting generated
- Blackberry using Eclipse
- Maven: missing artifact presto
- Prevent commiting files to SVN with warnings using eclipse
- How to auto implement suggestions in Android Studio?
- Inspecting android sql database from Eclipse
- App Crashing While passing value to web service
- Eclipse Java Build Path does not find jars when launch with eclipse Helios
- How do I write to the console in java?
- Wait for workspace job to finish
- Why can't OSX detect android Galaxy S for USB debugging?
- Google Search API: Loading all datastore data into document builder for full text search on all records
- Cannot find the FrameLayout element
- Eclipse remote debugging arm-linux library
- Can I Display Path Information for Ant Buildfiles in Eclipse?
- SERVLET - HTTP Status 405 – Method Not Allowed
- How to build automatically different JARs from same code using Eclipse?
- Eclipse restart using 'PlatformUI.getWorkbench().restart()' is not restarting the RCP product
- running hello world - not getting hello world on screen
- Eclipse: support for fb-namespace (Facebook) in JSP-files
- Can't run my application due to Dalvik format failure (Eclipse)
- Vaadin7 with mybatis and Spring
- Unable to install maven plugin for eclipse luna
- How do I use the features of 2.01, yet still support 1.5 with one apk?
- Matlabcontrol and Java Servlet
- Installing eclipse plugins
- Can't deploy websocket application in glassfish4 server
- Springboot application jar - very slow view resolver
- How to export results in Hana?
- row cannot be resolved to a variable