Zhangwel261717
- 活动总数 28
- 最后的活动
- 成员加入日期
- 关注 0 名用户
- 关注者数 0 名用户
- 投票数 0
- 订阅数 9
-
创建于 How get I get PsiElement instance for specified testData's code file into junit test?
已回答Hello, 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... -
创建于 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... -
创建于 [Intellij IDEA Plugin Development]How to force return in AnAction?
已回答Hello! 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 : ... -
创建于 [Intellij IDEA Plugin Development] What's correct way to mark a PsiElement?
已回答Hello! 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... -
创建于 [Project Structure Interface] Unexpected behavior for KtClassBody.add() method
已回答Hello 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... -
创建于 [Intellij IDEA Plugin Development]How can I detect a KtReference represented class is sub type of specified class?
已回答Hello, 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... -
创建于 How can I get the full name of KtNameReferenceExpression represent reference?
已回答Hi! 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 ... -
创建于 How Can I find KtClass at project scope by providing class's qualified name?
已回答I 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...