ECLIPSE RCP - 具有 objectState 支持的轻量级装饰器
如何使用 org.eclipse.ui.decorators 提供的这个功能?假设我在 TreeViewer 中有一些对象,并且仅当对象的“脏”属性设置为 true 时才启用装饰器?我是否必须构建一些 Decorator
实现,或者仅在 plugin.xml
扩展中使用 objectState
才能满足我的需求?
How use this functionality that org.eclipse.ui.decorators
provides? Lets say I have some object in TreeViewer
and want to enable decorator only when object has "dirty" property set to true
? Do I have to build some Decorator
implementation or only use of objectState
in plugin.xml
extension will fulfill my needs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
本文可能有用:
http://www.eclipse.org/articles/Article -Decorators/decorators.html
还有扩展点文档:
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_decorators.html
和维基:
http://wiki.eclipse.org/FAQ_How_do_I_create_a_label_decorator_declaratively%3F
平台帮助:
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench_advext_decorators.htm
This article may prove useful:
http://www.eclipse.org/articles/Article-Decorators/decorators.html
Also the extension point documentation:
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_decorators.html
And the wiki:
http://wiki.eclipse.org/FAQ_How_do_I_create_a_label_decorator_declaratively%3F
And the platform help:
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench_advext_decorators.htm
这篇文章中的“我的一位出色的同事”部分可能会有所帮助
在 Eclipse 中RCP,如何根据编辑器中的“脏”属性禁用保存工具栏按钮
"A brilliant colleague of mine" section in this post may be helpful
In Eclipse RCP, how do I disable a save toolbar button according to the "dirty" property in editor