主页
IDEs Support (IntelliJ Platform) | JetBrains
联系支持服务
社区
登录
Imants Cekusins
活动总数
410
最后的活动
2024年06月25日 06:27
成员加入日期
2015年07月30日 11:35
关注
0 名用户
关注者数
0 名用户
投票数
15
订阅数
108
活动概览
帖子(12)
评论(275)
按最近的活动排序
最近的活动
投票数
创建于
2016年05月30日 08:56
try to leave AbstractBlock out and implement original Block interface. here is a hint where you are likely to pause: @NotNull public ChildAttributes getChildAttributes(int i) { return new ChildAtt...
社区
IntelliJ IDEA Open API and Plugin Development
Formatter and Indentation
0 票
已编辑于
2016年05月30日 08:41
FormattingModel uses Block instances. in the screenshots many methods are static. I am not sure how this is supposed to work. It may be possible but this is a very different approach. This, or key ...
社区
IntelliJ IDEA Open API and Plugin Development
Formatter and Indentation
0 票
创建于
2016年05月30日 08:26
is this formatting code online somewhere?
社区
IntelliJ IDEA Open API and Plugin Development
Formatter and Indentation
0 票
已编辑于
2016年05月30日 07:35
getSpacing is supposed to be called for every block in a file: for beginning of line, between symbols etc. this is Block implementation's getSpacing - not static getSpacing
社区
IntelliJ IDEA Open API and Plugin Development
Formatter and Indentation
0 票
已编辑于
2016年05月30日 07:31
try this in Block impl: @Override public Indent getIndent() {return null;} try putting a breakpoint in getSpacing to see when it is called. another thing: Block implementation methods should no...
社区
IntelliJ IDEA Open API and Plugin Development
Formatter and Indentation
0 票
已编辑于
2016年05月30日 07:03
did you register FormattingModelBuilder and implement FormattingModel, Block? if you decide to try this solution (which will take time and may not work for you), FormattingModel's initRootBlock...
社区
IntelliJ IDEA Open API and Plugin Development
Formatter and Indentation
0 票
创建于
2016年05月30日 06:39
it is possible to use spacing instead of Indent: add Extension Point: lang.formatter : implement FormattingModelBuilderimplement FormattingModelimplement Block: @Overridepublic List<Block> getSubB...
社区
IntelliJ IDEA Open API and Plugin Development
Formatter and Indentation
0 票
创建于
2016年03月05日 20:04
yes it seems that the element passed to FindUsagesHandler is the resolved one. Could you tweak "resolve" to it always points to the element itself? You could tweak search too, so the correct ele...
社区
IntelliJ IDEA Open API and Plugin Development
Pass in the "right" element to Find Usage Handler
-1 票
创建于
2016年03月05日 20:34
well you'd need to tweak something. Most likely, in a few places. here is an idea: in your FindUsagesHandler implementation, override this method: @NotNull @Override public PsiElement[] getPrimaryE...
社区
IntelliJ IDEA Open API and Plugin Development
Pass in the "right" element to Find Usage Handler
-1 票
创建于
2016年03月05日 21:07
I wouldn't worry if find usage returns too many results. If it left usages out, this would be a bigger problem.
社区
IntelliJ IDEA Open API and Plugin Development
Pass in the "right" element to Find Usage Handler
-1 票
«
第一页
‹
上一页