Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBIDE-17496 JBIDE-17504: Prevent from parallel loading of same repo #243

Closed
wants to merge 1 commit into from
Closed

JBIDE-17496 JBIDE-17504: Prevent from parallel loading of same repo #243

wants to merge 1 commit into from

Conversation

mickaelistria
Copy link
Contributor

This is a workaround to avoid p2 bug 436378

installButton.setEnabled(true);
}
JBossDiscoveryUi.install(toInstall, dialog);
} catch (Exception ex) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be

} catch (InterruptedException ex) {
                JBossCentralActivator.getDefault().getLog().log(new Status(IStatus.ERROR, JBossCentralActivator.ID, ex.getMessage(), ex));
} catch (InvocationTargetException ite) {
                JBossCentralActivator.getDefault().getLog().log(new Status(IStatus.ERROR, JBossCentralActivator.ID, ite.getMessage(), ite));
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also in CheckForUpdatesAction.run() method in the end of the class Exception should be changed to org.eclipse.core.commands.common.CommandException.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I amended the commit to apply your suggestions.

This is a workaround to avoid p2 bug 436378
@fbricon
Copy link
Member

fbricon commented Jun 6, 2014

merged in master and beta2.

However, I kept the part where the installbutton was disabled during install

@fbricon fbricon closed this Jun 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants