Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in
Peter Gromov
Total activity
2258
Last activity
May 09, 2023 12:44
Member since
July 25, 2008 18:59
Following
0 users
Followed by
1 user
Votes
0
Subscriptions
739
Activity overview
Articles (0)
Posts (3)
Comments (1516)
Sort by recent activity
Recent activity
Votes
Edited
September 07, 2016 12:06
Having PSI for binary files is possible. For example, Java .class files are handled like this. You should create your own FileViewProviderFactory extension (like ClassFileViewProviderFactory), retu...
Community
IntelliJ IDEA Open API and Plugin Development
create psi from binary file
1 vote
Created
September 07, 2016 12:00
A more orthodox way would be to use PSI_FILE data key to get PsiFile, and after that call psiFile.findReferenceAt(caretOffset).
Community
IntelliJ IDEA Open API and Plugin Development
PsiElement#getReferences() returns null?
1 vote
Created
September 06, 2016 09:56
Have you tried PsiJavaFile#setPackageName, is it better?
Community
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
0 votes
Created
September 05, 2016 11:55
A runnable performing your PSI modification, e.g. the whole body of changePackage method
Community
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
1 vote
Created
September 05, 2016 11:36
Did you get an error message together with the exception? It should be "Must not change PSI outside command or undo-transparent action. See com.intellij.openapi.command.WriteCommandAction or com.in...
Community
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
1 vote
Created
September 03, 2016 18:23
In Goto Symbol the pattern is OK, because it first retrieves all possible names, sorts them, and then checks which symbols are actually present for each separate name. Code completion should probab...
Community
IntelliJ IDEA Open API and Plugin Development
StubIndex persisting between test runs leading to incorrect completions
1 vote
Created
September 03, 2016 16:05
I see. The thing is, for performance reasons those keys are a superset of actual keys in the actual project, but not exactly the same set. So, I'd suggest for each key to query stub index values wi...
Community
IntelliJ IDEA Open API and Plugin Development
StubIndex persisting between test runs leading to incorrect completions
1 vote
Created
September 02, 2016 11:17
(PsiJavaFile) psiClass.getContainingFile()
Community
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
1 vote
Created
September 02, 2016 10:07
Yes, it does. Your example was about constructors, that's why I mentioned it. There's also PsiClass#getMethods, PsiClass#getFields etc. Please check all PsiClass methods, there's a lot of stuff the...
Community
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
1 vote
Created
August 31, 2016 11:09
If it's convenient for you to change the method as a whole, then I'd suggest replace. It's also possible to do finer-grained changes in the references and method calls, but this will require your p...
Community
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
1 vote
«
First
‹
Previous
Next
›
Last
»