主页
IDEs Support (IntelliJ Platform) | JetBrains
联系支持服务
社区
登录
Peter Gromov
活动总数
2258
最后的活动
2023年05月09日 12:44
成员加入日期
2008年07月25日 18:59
关注
0 名用户
关注者数
1 名用户
投票数
0
订阅数
739
活动概览
文章(0)
帖子(3)
评论(1516)
按最近的活动排序
最近的活动
投票数
已编辑于
2016年09月07日 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...
社区
IntelliJ IDEA Open API and Plugin Development
create psi from binary file
1 票
创建于
2016年09月07日 12:00
A more orthodox way would be to use PSI_FILE data key to get PsiFile, and after that call psiFile.findReferenceAt(caretOffset).
社区
IntelliJ IDEA Open API and Plugin Development
PsiElement#getReferences() returns null?
1 票
创建于
2016年09月06日 09:56
Have you tried PsiJavaFile#setPackageName, is it better?
社区
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
0 票
创建于
2016年09月05日 11:55
A runnable performing your PSI modification, e.g. the whole body of changePackage method
社区
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
1 票
创建于
2016年09月05日 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...
社区
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
1 票
创建于
2016年09月03日 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...
社区
IntelliJ IDEA Open API and Plugin Development
StubIndex persisting between test runs leading to incorrect completions
1 票
创建于
2016年09月03日 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...
社区
IntelliJ IDEA Open API and Plugin Development
StubIndex persisting between test runs leading to incorrect completions
1 票
创建于
2016年09月02日 11:17
(PsiJavaFile) psiClass.getContainingFile()
社区
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
1 票
创建于
2016年09月02日 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...
社区
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
1 票
创建于
2016年08月31日 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...
社区
IntelliJ IDEA Open API and Plugin Development
How to change PSIClass (java files) ?
1 票
«
第一页
‹
上一页
下一页
›
最后
»