Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
check for update button cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Krug committed Jan 4, 2018
1 parent 11e6945 commit 37b9196
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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$
}
}
});
Expand Down

0 comments on commit 37b9196

Please sign in to comment.