Henry Peterson
I am a passionate programmer and a clean code evangelist who mainly likes to create Android apps and contribute to open source libraries. https://thsaravana.github.io/
- 活动总数 174
- 最后的活动
- 成员加入日期
- 关注 0 名用户
- 关注者数 0 名用户
- 投票数 53
- 订阅数 45
-
创建于 How to get hold of KotlinCompiler?
val compiler = ToolProvider.getSystemJavaCompiler()val diagnostics = DiagnosticCollector<JavaFileObject>()val fileManager: StandardJavaFileManager = compiler.getStandardFileManager(diagnostics, nul... -
创建于 Hook AnnotationProcessor in Project dynamically
已回答I am trying to write a plugin that can hook into the "annotationProcessor framework" in any given project. Let me explain in detail:In a gradle project, if we want to add an AnnotationProcessor as ... -
创建于 Add and Remove errors in EditorTextField
已回答I am using the following Custom EditorTextField inside a DialogWrapper: class CustomTextField(project: Project, s: String) : LanguageTextField(XmlLanguage.INSTANCE, project, s) { override fun cr... -
创建于 System.getenv() returns different value in Ultimate and Community Edition
已回答I wrote a plugin that fetching Environmental variable from the system. I am using Mac OS Sierra (10.12.6). 1. When I tested this by running (:runIde) it in Community Edition, it printed out the cor... -
已编辑于 Execute a Java method in Editor and show the result in Console
I am writing a plugin for Java/Kotlin projects for which I need the below functionality. Let's say I have a method like this in my editor: private void getPosition(String value, String input) { St... -
创建于 Adding "plugin on disk" as a dependency for another plugin
I have a plugin named "my-plugin". I have another plugin named "sample-plugin". I need to add "my-plugin" as a dependency to "sample-plugin". I went through the page https://www.jetbrains.org/intel... -
创建于 Kotlin FindUsages not working for Primary constructor for custom reference
I am writing a plugin for Handlebars support, where I am trying to connect a Handlebars file (.hbs) with a corresponding Kotlin class. The below is: My Handlebars file: {{#each animals}} Working =... -
创建于 resolve() invoked multiple times
In my plugin I have created a reference using PsiReferenceContributor, PsiReferenceProvider and PsiReferenceBase. When I put my mouse over the element, the resolve() method is invoked multiple time... -
创建于 How to listen to file open event?
I am trying to listen to file open event, i.e, a callback when a file is opened in the editor. I am using this now: project.messageBus.connect(project).subscribe(FileEditorManagerListener.FILE_EDI... -
已编辑于 How to handle custom references when renaming the folder name?
I used `PsiReferenceContributor` and `PsiReferenceBase` to create a reference between the text (KtStringTemplateExpression) "folder/samplefile.txt" and the file "samplefile.txt" under the directory...