mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
[cleanup] fix compiler warnings
This commit is contained in:
parent
c657c2ef8f
commit
1da81013b5
3 changed files with 4 additions and 4 deletions
|
@ -88,7 +88,7 @@ public class SerialProperties {
|
||||||
return fDefaultFlowControl;
|
return fDefaultFlowControl;
|
||||||
}
|
}
|
||||||
public String getDefaultTimeout() {
|
public String getDefaultTimeout() {
|
||||||
return "5";
|
return "5"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
protected void setupProperties() {
|
protected void setupProperties() {
|
||||||
fSerialPortTable = new Vector();
|
fSerialPortTable = new Vector();
|
||||||
|
@ -140,7 +140,7 @@ public class SerialProperties {
|
||||||
fDefaultParity = (String) fParityTable.get(0);
|
fDefaultParity = (String) fParityTable.get(0);
|
||||||
fDefaultFlowControl = (String) fFlowControlTable.get(0);
|
fDefaultFlowControl = (String) fFlowControlTable.get(0);
|
||||||
|
|
||||||
Enumeration portIdEnum= CommPortIdentifier.getPortIdentifiers();;
|
Enumeration portIdEnum= CommPortIdentifier.getPortIdentifiers();
|
||||||
while (portIdEnum.hasMoreElements()) {
|
while (portIdEnum.hasMoreElements()) {
|
||||||
CommPortIdentifier identifier = (CommPortIdentifier) portIdEnum.nextElement();
|
CommPortIdentifier identifier = (CommPortIdentifier) portIdEnum.nextElement();
|
||||||
String strName = identifier.getName();
|
String strName = identifier.getName();
|
||||||
|
|
|
@ -163,7 +163,7 @@ public class SerialSettings implements ISerialSettings {
|
||||||
fStopBits = store.get("StopBits", fProperties.getDefaultStopBits());//$NON-NLS-1$
|
fStopBits = store.get("StopBits", fProperties.getDefaultStopBits());//$NON-NLS-1$
|
||||||
fParity = store.get("Parity", fProperties.getDefaultParity());//$NON-NLS-1$
|
fParity = store.get("Parity", fProperties.getDefaultParity());//$NON-NLS-1$
|
||||||
fFlowControl = store.get("FlowControl", fProperties.getDefaultFlowControl());//$NON-NLS-1$
|
fFlowControl = store.get("FlowControl", fProperties.getDefaultFlowControl());//$NON-NLS-1$
|
||||||
fTimeout = store.get("Timeout",fProperties.getDefaultTimeout());
|
fTimeout = store.get("Timeout",fProperties.getDefaultTimeout()); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
public void save(ISettingsStore store) {
|
public void save(ISettingsStore store) {
|
||||||
|
|
|
@ -105,7 +105,7 @@ public class SerialSettingsPage implements ISettingsPage {
|
||||||
composite.setLayout(gridLayout);
|
composite.setLayout(gridLayout);
|
||||||
composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
|
||||||
|
|
||||||
fSerialPortCombo=addLabeledCombo(composite, SerialMessages.PORT + ":");
|
fSerialPortCombo=addLabeledCombo(composite, SerialMessages.PORT + ":"); //$NON-NLS-1$
|
||||||
fBaudRateCombo=addLabeledCombo(composite, SerialMessages.BAUDRATE + ":"); //$NON-NLS-1$
|
fBaudRateCombo=addLabeledCombo(composite, SerialMessages.BAUDRATE + ":"); //$NON-NLS-1$
|
||||||
fDataBitsCombo=addLabeledCombo(composite, SerialMessages.DATABITS + ":"); //$NON-NLS-1$
|
fDataBitsCombo=addLabeledCombo(composite, SerialMessages.DATABITS + ":"); //$NON-NLS-1$
|
||||||
fStopBitsCombo=addLabeledCombo(composite, SerialMessages.STOPBITS + ":"); //$NON-NLS-1$
|
fStopBitsCombo=addLabeledCombo(composite, SerialMessages.STOPBITS + ":"); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue