JFace DialogCellEditor: how to make buttons always appear?

本秂侑毒 提交于 2019-12-02 02:05:44
sambi reddy

You can only edit one Viewer cell at a time. Viewer won't support editing multiple cells at a time unless you do some customization.

I can think of following solutions.

  1. Paint widget ( button, text, combo..etc) like image on table cell and invoke CellEditor when user activates it. You can find some examples here about how to paint on Table Cell. http://www.eclipse.org/articles/article.php?file=Article-CustomDrawingTableAndTreeItems/index.html

  2. I posted an answer about how to show button in table cell here. you can following the same concept with CellEditor SWT - Tableviewer adding a remove button to a column in the table

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