Skip to content

Commit

Permalink
JBIDE-19637 - Runtime download not working from New Server dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
snjeza committed May 4, 2015
1 parent d801607 commit 4297aaa
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ protected void createWidgets() {
downloadAndInstallButtonWrapper.setLayout(new FillLayout());
downloadAndInstallButton = new Link(downloadAndInstallButtonWrapper, SWT.NONE);
downloadAndInstallButton.setText("<a href=\"\">" + Messages.rwf_DownloadRuntime + "</a>");
downloadAndInstallButton.addSelectionListener(new DownloadAndInstallListener());
downloadAndInstallButton.setEnabled(false);
downloadAndInstallButtonWrapper.setToolTipText(Messages.rwf_downloadTooltipLoading);
downloadAndInstallButtonWrapper.setLayoutData(FormDataUtility.createFormData2(0,0,homeDirButton,-5,null,0,100,-10));
Expand Down Expand Up @@ -158,8 +157,10 @@ protected IStatus run(IProgressMonitor monitor) {
public void run() {
if( downloads != null && downloads.length > 0 ) {
try {
if( !downloadAndInstallButton.isDisposed())
if( !downloadAndInstallButton.isDisposed()) {
downloadAndInstallButton.setEnabled(true);
downloadAndInstallButton.addSelectionListener(new DownloadAndInstallListener());
}
if( !downloadAndInstallButtonWrapper.isDisposed())
downloadAndInstallButtonWrapper.setToolTipText(null);
} catch(Throwable t) {
Expand Down

0 comments on commit 4297aaa

Please sign in to comment.