Skip to content

Commit 37b9196

Browse files
author
Anton Krug
committed
check for update button cleanup
1 parent 11e6945 commit 37b9196

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/preferences/BinaryPathPreferencePage.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -227,20 +227,18 @@ protected void valueChanged(boolean oldValue, boolean newValue) {
227227

228228
parent = getFieldEditorParent();
229229
beforeControlInsertion(parent);
230-
Button updateCheckButton = new Button(parent, SWT.PUSH | SWT.LEFT);
230+
Button updateCheckButton = new Button(parent, SWT.PUSH | SWT.LEAD);
231231
updateCheckButton
232232
.setText(Messages.BinaryPathPreferencePage_CheckForUpdate);
233233
updateCheckButton.addSelectionListener(new SelectionAdapter() {
234234
public void widgetSelected(SelectionEvent event) {
235-
{
236-
UpdateCheck check = new UpdateCheck(false);
237-
try {
238-
Job job = check.check(binaryPath.getStringValue());
239-
job.join();
240-
setLastUpdateCheckDate();
241-
} catch (InterruptedException e) {
242-
CppcheclipsePlugin.logInfo("Update check interrupted!", e); //$NON-NLS-1$
243-
}
235+
UpdateCheck check = new UpdateCheck(false);
236+
try {
237+
Job job = check.check(binaryPath.getStringValue());
238+
job.join();
239+
setLastUpdateCheckDate();
240+
} catch (InterruptedException e) {
241+
CppcheclipsePlugin.logInfo("Update check interrupted!", e); //$NON-NLS-1$
244242
}
245243
}
246244
});

0 commit comments

Comments
 (0)