Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in
Onuryi
Total activity
48
Last activity
October 04, 2020 08:21
Member since
April 02, 2020 10:18
Following
0 users
Followed by
0 users
Votes
2
Subscriptions
5
Activity overview
Posts (5)
Comments (36)
Sort by recent activity
Recent activity
Votes
Edited
May 07, 2020 12:31
1) Let me try to explain this using an example: Let's say the use types private int age; in the editor. This would be valid. but if the user types only private or "pr" this would be invalid and in ...
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener code tracking
0 votes
Created
May 07, 2020 11:08
1) I just want to save the Document only if there are no errors e.g it is a valid java file. So I thought I would use a counter and increment it if hasErrorElements returns true. And if the counter...
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener code tracking
0 votes
Created
May 07, 2020 10:53
1) Ok thanks but is there another way to do this efficiently? Should I call it from ApplicationManager.runReadAction? 2) So I'm calling the handleEvents method in both before and after method. The ...
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener code tracking
0 votes
Edited
May 07, 2020 10:35
Thank you guys for your answers! Artsiom Chapialiou thank you for the workaround! So now everytime i save a Document on my change event the before and after method of my BulkFileListener are fired....
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener code tracking
0 votes
Created
May 05, 2020 07:23
Thanks for your response Yann! I already did. I know that I can access the old contents of files in the before event and new content in the after event. My problem remains the same as posted above....
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener code tracking
0 votes
Edited
April 28, 2020 10:40
Thank you for your answer! I have registered a VFS Listener according to the documentation but somehow I receive the same output on both methods before and after.The events also seem to fire only w...
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener code tracking
0 votes
Created
April 23, 2020 18:16
Hi Yann, thank you for your reply! Are you referring to javadoc from com.intellij.psi.PsiTreeChangeEvent regarding "instead use CachedValue and PsiModificationTracker.MODIFICATION_COUNT"? Yes, I am...
Community
IntelliJ IDEA Open API and Plugin Development
PsiTreeChangeListener code tracking
0 votes
Created
April 20, 2020 10:49
I gues my mistake is that I'm working with the PsiTreeChangeEvent instead of using ChachedValue and PsiModificationTracker. Are there any examples on how to use them together?
Community
IntelliJ IDEA Open API and Plugin Development
Triggering Action based on Editor Events
0 votes
Edited
April 19, 2020 11:19
Jakub Chrzanowski I tried using the PsiTreeChangeListener but somehow I get a weird output. My code looks like following: public class CodeTracker implements PsiTreeChangeListener { @Override ...
Community
IntelliJ IDEA Open API and Plugin Development
Triggering Action based on Editor Events
0 votes
Created
April 07, 2020 05:59
Thanks Jakub! I will have a look at it!
Community
IntelliJ IDEA Open API and Plugin Development
Triggering Action based on Editor Events
0 votes
«
First
‹
Previous