Kotlin Eclipse Plugin 0.2.0
Kotlin Eclipse Plugin 0.2.0
Today we are happy to present a new version of Kotlin plugin for Eclipse. This release includes the following features:
- Update to Kotlin M12
- Java to Kotlin converter
- Navigation to Kotlin sources from Java
- Kotlin syntax highlighting in Compare View
Starting from this release, Eclipse plugin supports Kotlin M12. All existing projects will start using it automatically and new projects will be configured to use it from the beginning. Please take a look at the list of changes and deprecations in the language, as some code will probably need to be updated.
Convert Java Code to Kotlin
In this release we continue to improve interaction between Java and Kotlin in Eclipse IDE.
Now it’s possible to try Kotlin in an existing project by converting Java files to Kotlin from IDE in the way our online demo can do it. Nice thing about conversion in the IDE is the ability to convert several files at once. Action is called Convert Java to Kotlin and can be found in the context menu in the Package Explorer view:
If the file created trough conversion happens to be the first Kotlin file in the project, the IDE will also configure the Kotlin Nature and suggest to add Kotlin runtime library to the class path.
There are some known issues with formatting of resulting code but this will be improved in one of next releases.
Navigate from Java Code to Kotlin
Now you can easily navigate from Java to Kotlin classes and functions with Open Declaration (Ctrl+Click or F3).
Highlighting for File Comparison
Finally, this update enables Kotlin syntax highlighting in the Compare view. This was immediately considered to be a major feature after the first code review of Kotlin code :)
Install this release by drag-and-drop’ing this button to Eclipse:
Your feedback and pull requests are welcome!
Subscribe to Blog updates
Gradle Kotlin DSL 1.0
This is a guest blog post from Paul Merlin software engineer for Gradle The recently released Gradle 5.0 includes the Gradle Kotlin DSL v1.0 which is now ready for widespread use. We want you to enjoy a build authoring experience with the benefits provided by Kotlin’s static type system in Inte…
Kotlin 1.3 Released with Coroutines, Kotlin/Native Beta, and more
You can read this blog post in other languages: Today we are releasing Kotlin 1.3 together with a set of accompanying libraries, build tools, and learning materials! We develop Kotlin to be a good tool for all application developers, at all scales and on all platforms. In Kotlin…
KotlinConf 2018 Announcements
In today's keynote at KotlinConf 2018 we made a series of announcements around releases, resources, and other things we've made available. For your convenience below is a brief summary of the announcements with the corresponding links for more information. Kotlin 1.3 hits RC Version 1.3 hits RC…