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/
- Total activity 174
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 53
- Subscriptions 45
-
Created How to get hold of KotlinCompiler?
val compiler = ToolProvider.getSystemJavaCompiler()val diagnostics = DiagnosticCollector<JavaFileObject>()val fileManager: StandardJavaFileManager = compiler.getStandardFileManager(diagnostics, nul... -
Created Hook AnnotationProcessor in Project dynamically
AnsweredI 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 ... -
Created Add and Remove errors in EditorTextField
AnsweredI am using the following Custom EditorTextField inside a DialogWrapper: class CustomTextField(project: Project, s: String) : LanguageTextField(XmlLanguage.INSTANCE, project, s) { override fun cr... -
Created System.getenv() returns different value in Ultimate and Community Edition
AnsweredI 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... -
Edited 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... -
Created 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... -
Created 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 =... -
Created 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... -
Created 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... -
Edited 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...