0
ComboBoxViewerCellEditor
에서 뭔가를 쓰고 싶습니다. 일치하는 드롭 다운 값을 얻습니다.ComboBoxViewerCellEditor에서 각 알파벳을 유형별로 드롭 다운하는 방법
이 방법을 제안 할 수 있습니까? 코드를 검색 :
public TCOperationColumnEditable(TableViewer viewer) {
super(viewer);
try
{
this.viewer = viewer;
//this.editor = new TextCellEditor(this.viewer.getTable());
OperationGSON[] allOperations = OperationAPIHandler.getInstance().getAllOperations();
ArrayList<String> opnName = new ArrayList<String>();
for(OperationGSON opn : allOperations)
{
opnName.add(opn.opnName);
}
this.editor = new ComboBoxViewerCellEditor(this.viewer.getTable(), SWT.FULL_SELECTION);
this.editor.setLabelProvider(new LabelProvider());
this.editor.setContentProvider(new ArrayContentProvide());
this.editor.setInput(opnName);
String[] stockArr = new String[opnName.size()];
stockArr = opnName.toArray(stockArr);
new AutoCompleteField(this.viewer.getControl(), new CComboContentAdapter(), stockArr);
}
catch(Exception e)
{
System.out.println("[" + getClass().getName() + " : TCOperationColumnEditable()] - Exception : " + e.getMessage());
e.printStackTrace();
}
}
미안하지만 당신이 묻는 것을 이해하지 못합니다. 이 코드는'EditingSupport' 클래스의 일부입니까? –
예 편집 지원의 일부입니다. 내가 원하는 것은 자동 완성 드롭 다운입니다 .http : //stackoverflow.com/users/2670892/greg-449 – Biswabir
또한 첨부 된 이미지를 참조하십시오 – Biswabir