Home
IDEs Support (IntelliJ Platform) | JetBrains
Submit a request
Community
Sign in
Florent
Total activity
64
Last activity
August 04, 2019 22:51
Member since
December 03, 2018 22:24
Following
0 users
Followed by
0 users
Votes
0
Subscriptions
9
Activity overview
Posts (9)
Comments (46)
Sort by recent activity
Recent activity
Votes
Created
August 01, 2019 15:39
I found something but I don't think it's the best way to do. if (hashArrayElement != null) { WriteCommandAction.runWriteCommandAction(event.project!!) { val createKey: PsiElement? = Php...
Community
IntelliJ IDEA Open API and Plugin Development
Add PsiElement to another
0 votes
Edited
July 31, 2019 22:18
I really need help. 4 evening and still not the Psi I want. var hashArrayElement: ArrayHashElement? = findFactoriesValuesArray(psiFile) as ArrayHashElementif (hashArrayElement != null) { // add ...
Community
IntelliJ IDEA Open API and Plugin Development
Add PsiElement to another
0 votes
Edited
July 31, 2019 20:01
Thank you for your reply. I add the comma like this: (It's work, after that I will need to check if the comma exists and add it if not the case) val arrayCreation = findFactoriesValuesArray(psiFile...
Community
IntelliJ IDEA Open API and Plugin Development
Add PsiElement to another
0 votes
Edited
July 31, 2019 07:44
I've updated my method findFactoriesValuesArray which now return the last ArrayHashElement: private fun findFactoriesValuesArray(file: PsiFile): PsiElement? { val phpReturn = PsiTreeUtil.findC...
Community
IntelliJ IDEA Open API and Plugin Development
Add PsiElement to another
0 votes
Created
July 30, 2019 07:09
I have try something. Here my code: private fun findFactoriesKey(file: PsiFile): PsiElement? { val arrayCreationExpressions: Collection<ArrayCreationExpression> = PsiTreeUtil.findChildrenOfType(...
Community
IntelliJ IDEA Open API and Plugin Development
Add some code to a file
0 votes
Created
July 29, 2019 22:05
I found this https://github.com/Haehnchen/idea-php-symfony2-plugin/blob/master/src/main/java/fr/adrienbrault/idea/symfony2plugin/util/PhpElementsUtil.java and https://github.com/Haehnchen/idea-php-...
Community
IntelliJ IDEA Open API and Plugin Development
Add some code to a file
0 votes
Created
July 29, 2019 19:19
The issue is, I don't know how to get the PsiElement which contains the factories array to use PsiElement.add(newPsiElementKeyValue). How to get the PHP array?
Community
IntelliJ IDEA Open API and Plugin Development
Add some code to a file
0 votes
Created
July 29, 2019 13:47
Thank you. Do you have just a simple example to show me?
Community
IntelliJ IDEA Open API and Plugin Development
Add some code to a file
0 votes
Created
July 26, 2019 06:31
Could you provide your help Yann? 😁
Community
IntelliJ IDEA Open API and Plugin Development
Add some code to a file
0 votes
Edited
July 24, 2019 15:51
The thing is I don't know how to manipulate an entire PsiFile from this full content (the entire file). And the docs don't help me because I don't understand how to get some PsiElement, edit them o...
Community
IntelliJ IDEA Open API and Plugin Development
Add some code to a file
0 votes
Next
›
Last
»