diff --git a/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/preferences/BinaryPathPreferencePage.java b/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/preferences/BinaryPathPreferencePage.java index 64b02f1..9fb89da 100644 --- a/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/preferences/BinaryPathPreferencePage.java +++ b/com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/preferences/BinaryPathPreferencePage.java @@ -227,20 +227,18 @@ protected void valueChanged(boolean oldValue, boolean newValue) { parent = getFieldEditorParent(); beforeControlInsertion(parent); - Button updateCheckButton = new Button(parent, SWT.PUSH | SWT.LEFT); + Button updateCheckButton = new Button(parent, SWT.PUSH | SWT.LEAD); updateCheckButton .setText(Messages.BinaryPathPreferencePage_CheckForUpdate); updateCheckButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { - { - UpdateCheck check = new UpdateCheck(false); - try { - Job job = check.check(binaryPath.getStringValue()); - job.join(); - setLastUpdateCheckDate(); - } catch (InterruptedException e) { - CppcheclipsePlugin.logInfo("Update check interrupted!", e); //$NON-NLS-1$ - } + UpdateCheck check = new UpdateCheck(false); + try { + Job job = check.check(binaryPath.getStringValue()); + job.join(); + setLastUpdateCheckDate(); + } catch (InterruptedException e) { + CppcheclipsePlugin.logInfo("Update check interrupted!", e); //$NON-NLS-1$ } } });