Eclipse RCP - 投影(折叠)服务的内部结构
我需要按照此处所述进行自定义文本折叠: 我可以合并语法着色和折叠吗? 或根据主文档信息着色的投影
我正在挖掘代码,但它非常困惑......而且我无法访问某些类。
我仍然没有找到当 ProjectionAnnotation 折叠时哪个类决定显示什么
我需要一些有关如何实现折叠/投影的信息,但尚未找到任何文章。
如果有人熟悉 Eclipse 投影,或者知道任何文章,请帮忙!
基本目标:
1) 让 ProjectionAnnotations 显示 xml 标签中包含的文本,而不是第一行 2)使ProjectionAnnotations不可展开(永久折叠)
3)删除折叠/展开按钮(我想我知道该怎么做,但是这个装饰性的并且优先级较低)
I need to make custom text folding as described here: Can I merge Syntax coloring and Folding? OR Projection colored from master document info
I'm digging through code, but its very perplexed... and I cant get access to some classes.
I still haven't found what class decides what to show when ProjectionAnnotation collapsed
I need some info on how folding/projection is implemented, but haven't found any articles.
Please if somebody familiar with Eclipse projection, or knows any articles, help!
The basic goals:
1) make ProjectionAnnotations to show text enclosed in xml tags, instead of first line
2) make ProjectionAnnotations unexpandable(permanently collapsed)
3) remove collapse/expand button (I think I know how to do it, but this decorative and have less priority)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看优秀的 Eclipse 角文章,您还可以尝试查看 Spring IDE 是如何实现它的(查看其源代码此处)。
Have a look at the excellent Eclipse corner article, you could also try looking at how Spring IDE implemented it (check out their source code from here).