本文整理汇总了Java中org.eclipse.jface.viewers.TableViewer.setUseHashlookup方法的典型用法代码示例。如果您正苦于以下问题:Java TableViewer.setUseHashlookup方法的具体用法?Java TableViewer.setUseHashlookup怎么用?Java TableViewer.setUseHashlookup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.viewers.TableViewer
的用法示例。
在下文中一共展示了TableViewer.setUseHashlookup方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createTableViewer
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void createTableViewer() {
ArrayEditor arrayEditor = ((ArrayEditor) cellEditor);
tableViewer = new TableViewer(table);
tableViewer.setUseHashlookup(true);
tableViewer.setColumnProperties(arrayEditor.columnNames);
// Assign the cell editors to the viewer
CellEditor[] editors = arrayEditor.getColumnEditors(table);
tableViewer.setCellEditors(editors);
// Set the cell modifier for the viewer
tableViewer.setCellModifier(new ArrayEditorCellModifier(this, tableViewer));
// Set the label provider for the viewer
tableViewer.setLabelProvider(new ArrayEditorLabelProvider(cellEditor.getStyle()));
// Set the content provider
tableViewer.setContentProvider(new ArrayEditorContentProvider());
}
示例2: createTableViewer
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
private void createTableViewer() {
TableEditor tableEditor = ((TableEditor) cellEditor);
tableViewer = new TableViewer(table);
tableViewer.setUseHashlookup(true);
tableViewer.setColumnProperties(tableEditor.columnNames);
// Assign the cell editors to the viewer
CellEditor[] editors = tableEditor.getColumnEditors(table);
tableViewer.setCellEditors(editors);
// Set the cell modifier for the viewer
tableViewer.setCellModifier(new TableEditorCellModifier(this, tableViewer));
// Set the label provider for the viewer
tableViewer.setLabelProvider(new TableEditorLabelProvider());
// Set the content provider
tableViewer.setContentProvider(new TableEditorContentProvider());
}
示例3: createDialogArea
import org.eclipse.jface.viewers.TableViewer; //导入方法依赖的package包/类
@Override
protected Control createDialogArea(Composite parent) {
// create a composite with standard margins and spacing
Composite composite = (Composite)super.createDialogArea(parent);
composite.setLayout(new GridLayout(1, false));
final CLabel warning = new CLabel(composite, SWT.LEFT);
warning.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
warning.setImage(Activator.imageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/error.png").createImage());
warning.setText("Expert queue configuration parameters, please use with caution.");
TableViewer viewer = new TableViewer(composite, SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL);
viewer.setUseHashlookup(true);
viewer.getTable().setHeaderVisible(true);
viewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
createColumns(viewer);
viewer.setContentProvider(createContentProvider());
viewer.setInput(props);
final Button adv = new Button(composite, SWT.PUSH);
adv.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));
adv.setText("Advanced...");
adv.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(getShell(), "org.dawnsci.commandserver.ui.activemqPage", null, null);
if (pref != null) pref.open();
}
});
return composite;
}