return urlLookup;
}
protected void refreshApplicationUrlDomains() {
final ApplicationUrlLookupService urlLookup = getApplicationUrlLookup();
if (urlLookup == null) {
update(true,
CloudFoundryPlugin
.getStatus(
Messages.AbstractURLWizardPage_ERROR_NO_URL_HANDLER,
IStatus.ERROR));
return;
}
final String operationLabel = Messages.AbstractURLWizardPage_LABEL_FETCHING_DOMAIN;
ICoreRunnable runnable = new ICoreRunnable() {
public void run(IProgressMonitor coreRunnerMonitor) throws CoreException {
SubMonitor subProgress = SubMonitor.convert(coreRunnerMonitor, operationLabel, 100);
try {
urlLookup.refreshDomains(subProgress);
refreshedDomains = true;
// Must launch this again in the UI thread AFTER
// the refresh occurs.
Display.getDefault().syncExec(new Runnable() {