use of org.netxms.ui.eclipse.snmp.dialogs.helpers.ParamMappingLabelProvider in project netxms by netxms.
the class TrapConfigurationDialog method setupParameterList.
/**
* Setup parameter mapping list
*/
private void setupParameterList() {
Table table = paramList.getTable();
table.setHeaderVisible(true);
TableColumn tc = new TableColumn(table, SWT.LEFT);
tc.setText(Messages.get().TrapConfigurationDialog_Number);
tc.setWidth(90);
tc = new TableColumn(table, SWT.LEFT);
tc.setText(Messages.get().TrapConfigurationDialog_Parameter);
tc.setWidth(200);
pmap = new ArrayList<SnmpTrapParameterMapping>(trap.getParameterMapping());
paramList.setContentProvider(new ArrayContentProvider());
paramList.setLabelProvider(new ParamMappingLabelProvider(pmap));
paramList.setInput(pmap.toArray());
WidgetHelper.restoreColumnSettings(table, Activator.getDefault().getDialogSettings(), PARAMLIST_TABLE_SETTINGS);
paramList.addDoubleClickListener(new IDoubleClickListener() {
@Override
public void doubleClick(DoubleClickEvent event) {
editParameter();
}
});
}
Aggregations