Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

automated-refactoring

How to refactor a static inner class to a top level class in Eclipse?

December 2, 2023 by Tarik

This is so easy I can’t believe I missed it: With the cursor anywhere within the inner type, right click and select: Refactor -> Convert Member Type to Top Level… (There is no shortcut in the default settings) This automatically extracts the inner type, and places it in it’s own file, in the same package … Read more

Categories java Tags automated-refactoring, eclipse, java Leave a comment

Eclipse : transform static method invocation to a static import

May 26, 2023 by Tarik

Put the cursor on the method name (asList) and press Ctrl-Shift-M. This is the default keyboard shortcut for the ‘Add Import’ command. You can also find the command on the ‘Source’ menu.

Categories java Tags automated-refactoring, eclipse, java Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa