use of com.jopdesign.jopeclipse.internal.ui.CommPortIdentifierLabelProvider in project jop by jop-devel.
the class JOPDownloadTab method createCommPortViewer.
private void createCommPortViewer(Composite parent) {
Group group = JOPUIUtils.createHorizontalGrabGroup(parent);
group.setLayout(new GridLayout(2, false));
group.setText("COM Port:");
commPortViewer = new ComboViewer(group, SWT.SINGLE | SWT.READ_ONLY);
commPortViewer.setContentProvider(new CommPortIdentifierContentProvider());
commPortViewer.setInput(RXTXCommUtils.getAvailableSerialPorts());
commPortViewer.setLabelProvider(new CommPortIdentifierLabelProvider());
createVerticalSpacer(group, 1);
useUsbButton = createCheckButton(group, "Download with USB");
useUsbButton.addSelectionListener(listener);
testConnectionButton = createPushButton(group, "Test connection", null);
GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_END);
testConnectionButton.setLayoutData(gd);
}
Aggregations