use of org.jboss.tools.openshift.internal.ui.wizard.applicationexplorer.CreateURLWizard in project jbosstools-openshift by jbosstools.
the class CreateURLHandler method execute.
@Override
public Object execute(ComponentElement component, Shell shell) throws ExecutionException {
try {
Odo odo = component.getRoot().getOdo();
String projectName = component.getParent().getParent().getWrapped();
String applicationName = component.getParent().getWrapped().getName();
final CreateURLModel model = new CreateURLModel(odo, projectName, applicationName, component.getWrapped().getName());
final IWizard createURLWizard = new CreateURLWizard(model);
if (WizardUtils.openWizardDialog(createURLWizard, shell) == Window.OK) {
executeInJob("Create url", monitor -> execute(model, component));
}
return Status.OK_STATUS;
} catch (IOException e) {
return OpenShiftUIActivator.statusFactory().errorStatus(e);
}
}
Aggregations