JFace DialogCellEditor: how to make buttons always appear?

后端 未结 1 1407
野的像风
野的像风 2021-01-21 16:39

I use JFace DialogCellEditor to show a button in a cell of a row of my JFace TableViewer which triggers a dialog when activated. This behaviour works w

相关标签:
1条回答
  • 2021-01-21 17:39

    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

    0 讨论(0)
提交回复
热议问题