Zhangwel261717
- Total activity 28
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 9
-
Created How get I get PsiElement instance for specified testData's code file into junit test?
AnsweredHello, I'm writing a codegen Intellij IDEA Plugin and I want to test my plugin whether it parse code correctly. My project folder structure: └── src ├── main │ ├── kotlin │ └── reso... -
Created What is the correct way to get the generics as PsiType of a PsiType?
Hi! There is a PsiType, which I want to get its generics type as PsiType: java.util.Map<java.lang.String, java.util.List<java.lang.Long>> But I have no idea how can I get the generic type as PsiTy... -
Created [Intellij IDEA Plugin Development]How to force return in AnAction?
AnsweredHello! I am developing an IDEA Plugin. My AnAction has to check some preconditions and if not match any preconditions, the AnAction will force return and exit. The code like this: class MyAction : ... -
Created [Intellij IDEA Plugin Development] What's correct way to mark a PsiElement?
AnsweredHello! I'm writing a codegen IDEA Plugin. I have no idea how to put a custom data into a PsiElement. By putting custom data into PsiElement, I can know that which PsiFile is generated by my written... -
Created [Project Structure Interface] Unexpected behavior for KtClassBody.add() method
AnsweredHello everyone! I'm trying to add a KtProperty into KtClassBody I obtain a KtClassBody like this: val ktClass = ktPsiFactory.createClass("class Test {}")val ktClassBody = ktClass.getChildOfType<KtC... -
Created [Intellij IDEA Plugin Development]How can I detect a KtReference represented class is sub type of specified class?
AnsweredHello, I am writing a codegen IDEA Plugin. But I'm stuck into detecting whether a KtDeclaration represented class is sub type of kotlin.collections.Collection . When I receive a KtDeclaration, I c... -
Created How can I get the full name of KtNameReferenceExpression represent reference?
AnsweredHi! I am developing a codegen IDEA Plugin. I have stuck in getting the full name of KtNameReferenceExpression represent reference for a long time. For Example: package com.example.data data class ... -
Created How Can I find KtClass at project scope by providing class's qualified name?
AnsweredI am seeking for a best way to find a KtClass by class (written by Kotlin) qualified name. I have tried these code, but it same like not work in my expect. fun String.findKtClass(project: Projec...