use of org.jboss.tools.openshift.internal.ui.server.ServerSettingsWizard in project jbosstools-openshift by jbosstools.
the class ServerAdapterHandler method createServer.
private IServer createServer(final String resourceName, final IResource resource, IRoute route, final Connection connection) {
IServer server = null;
try {
IServerWorkingCopy serverWorkingCopy = OpenShiftServerUtils.create(resourceName);
final ServerSettingsWizard serverSettingsWizard = new ServerSettingsWizard(serverWorkingCopy, connection, resource, route);
if (WizardUtils.openWizardDialog(600, 650, serverSettingsWizard, Display.getDefault().getActiveShell())) {
server = serverSettingsWizard.getCreatedServer();
}
} catch (CoreException e) {
OpenShiftUIActivator.getDefault().getLogger().logError(NLS.bind("Failed to create OpenShift Server Adapter for resource {0}", resourceName), e);
}
return server;
}
Aggregations