How to get exactly Eclipse Editor kind of Tool Tip in RCP/SWT Table cell

99封情书 提交于 2020-01-15 07:37:13

问题


I want to get Exactly eclipse editor kind highly customized tooltip like below-

I used eclipse provided snippets of customized Tooltips but none of them were so highly improvised performance and easy to use. How to reuse these Tooltips , any example would help.


回答1:


you just need to extend org.eclipse.jface.window.ToolTip

and override

protected abstract Composite createToolTipContentArea(Event event,
            Composite parent);

you can add org.eclipse.swt.browser.Browser and set formatted content and add required controls.



来源:https://stackoverflow.com/questions/16776663/how-to-get-exactly-eclipse-editor-kind-of-tool-tip-in-rcp-swt-table-cell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!