Whatever ideas you have about the feature, please, let us know, so we could tune it exactly for your needs. Please, read more at the JetBrains wiki or on mrhaki's blog. This whole feature is still experimental and may change before the final IntelliJ IDEA 9 release, but we wanted to let you know to stimulate feedback early enough. gdsl files bundled and so you get DSL code-assistance out-of-the-box. And you can easily spot a typo, for example. Now you get support for dynamic methods with quite generic names as well. IDEA openen: Selecteer het debug-presentatieproject en druk op OK. Kloon dit GitHub-project en importeer het via IDEA. Download de Community-editie - dat is de versie die ik zal gebruiken. For example, a quite handy enhancement of the ReentrantLock class with a withLock() method to safely lock and unlock the reentrant lock before and after use, which can be defined like this: = Employees", type: '' Mocht iemand dit niet hebben, hier is een link waar je het kunt downloaden. IDEA picks up the file and starts recognizing the mentioned properties in your code right after you save the gdsl file. The following simple script did the whole magic for the currencies. gdsl extension then needs to be put on project's classpath (by you or a library) so that IDEA can see it. IntelliJ IDEA 9 will allow you to describe your custom DSLs with a Groovy script. What? Have we taught IntelliJ IDEA the world's currencies? No way, it's just me leveraging one of the many new Groovy features available in Maia, the next version of IntelliJ IDEA, available currently under EAP. WAIT a moment! The dialog is proposing currencies as valid properties to numbers! Currencies like eur or usd are being suggested! And once typed, valid currencies are no longer underlined as unresolvable, while invalid currency symbols will still get their underline. The code completion dialog is visible, showing me the options. What you see is me editing Groovy code with some sort of currency DSL in it. Look carefully at the IntelliJ IDEA Community Edition screenshot below. An experimental feature which we would like to get some feedback on from you. This time I have a little surprise up in my sleeve.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |