Create Flex Skin, custom Event and other classes easily
Do you know that one of the most effective ways of writing code in IntelliJ IDEA is Create From Usage approach, when first use a class, method, or other symbol, and IntelliJ IDEA then generates its declaration in a single click? Well, you do now, plus I’d like to give you two more examples of useful quick fixes that can generate routine code for you in no time.
Create Flex Skin
IntelliJ IDEA knows which MXML attributes must contain qualified name of a class. Class doesn’t exist? Invoke quick fix and get it right away.
In case of Skin class its behavior is even smarter. Write a skin class usage…
… and get MyButtonSkin.mxml file with host component and states correctly set up:
Create Custom Event class
Some Flex metadata attributes require qualified name of a class. Again, IDEA suggests to create class if it doesn’t exist yet. Correct base class is automatically suggested if needed. For example write following…
… and get custom event class with correct base class and constructor matching super:
P.S. Some features (like creating Flex Skin) are already available in IDEA 10.0.2 release, others (like creating custom event class) will be available in upcoming IDEA 10.x update release.
Subscribe to Blog updates
The New Terminal (Beta) Is Now in JetBrains IDEs
The new terminal (Beta) is now in JetBrains IDEs and will be available in the new UI starting from the 2024.1 version of the IDEs.
Java Annotated Monthly – February 2024
Welcome to the February edition of Java Annotated Monthly! We're excited to share this month’s collection of articles brimming with the latest Java news, including a list of the upcoming JEPs for Java 22. What’s more, you’ll also get to explore numerous informative blogs packed with Java tips and tu…
Java Annotated Monthly – January 2024
Happy New Year and welcome to the January edition of Java Annotated Monthly! As we step into 2024, we're excited to bring you the latest news and tutorials from the tech world. This issue’s highlight is the release of IntelliJ IDEA 2023.3 – a real game-changer that introduces an AI Assistant feature…
Java Annotated Monthly – December 2023
The December edition of Java Annotated Monthly is here! As usual, you’ll find all the latest Java and Kotlin updates as well as details of key industry events for networking and learning. This issue also features the latest release candidates and targeted JEPs alongside Java tutorials and articles a…