문제

In the jface table tutorial Here

I can see that in column editing support section

JFace provides the following default implementations for cell editors:

TextCellEditor

ColorCellEditor

CheckboxCellEditor

DialogCellEditor

ComboBoxViewerCellEditor

but what should be done to implement something like cell displays the path of certain directory and there's a small button in this cell like this image

enter image description here

도움이 되었습니까?

해결책

DialogCellEditor should do this. It normally just displays a label but switches to a label plus a button when the cell is selected.

You override the openDialogBox method to open the dialog you want.

You can also override createContents if you would rather have something other than a label (such as a Text control).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top