Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in

David Smith

Avatar
  • Total activity 8
  • Last activity April 22, 2021 09:47
  • Member since March 17, 2021 10:08
  • Following 0 users
  • Followed by 0 users
  • Votes 3
  • Subscriptions 1
Activity overview Posts (1) Comments (3)
Sort by votes Recent activity Votes
  • Edited April 22, 2021 09:47
    Thanks for the suggestion. I took a light try: first time append new code to the file, then run second time, this time didn't write any, and find the PSI previously added, then use ShortenReference...
    1. Community
    2. IntelliJ IDEA Open API and Plugin Development
    3. How to add import for my class with Kotlin ?
    • 0 votes
  • Created April 20, 2021 10:47
    Hi Roman, here is my code: val newFunc = psiFactory.createFunction( "@GET(\"/wb/api/block/shelve\")\n" + " fun get$pojoName(@QueryMap argMap: Map<String, Any>): Observable<...
    1. Community
    2. IntelliJ IDEA Open API and Plugin Development
    3. How to add import for my class with Kotlin ?
    • 0 votes
  • Edited April 20, 2021 03:09
    Thanks for the reply. I have tried the ShortenReferences.DEFAULT.process() method, but that doesn't work. My scenario is shorten a function's return value's FQN type. It looks something like: " fun...
    1. Community
    2. IntelliJ IDEA Open API and Plugin Development
    3. How to add import for my class with Kotlin ?
    • 0 votes
Copyright © 2000– JetBrains s.r.o.