Search in sources :

Example 1 with ServerSettingsWizard

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;
}
Also used : IServer(org.eclipse.wst.server.core.IServer) ServerSettingsWizard(org.jboss.tools.openshift.internal.ui.server.ServerSettingsWizard) CoreException(org.eclipse.core.runtime.CoreException) IServerWorkingCopy(org.eclipse.wst.server.core.IServerWorkingCopy)

Aggregations

CoreException (org.eclipse.core.runtime.CoreException)1 IServer (org.eclipse.wst.server.core.IServer)1 IServerWorkingCopy (org.eclipse.wst.server.core.IServerWorkingCopy)1 ServerSettingsWizard (org.jboss.tools.openshift.internal.ui.server.ServerSettingsWizard)1