Author: adietish
Date: 2012-03-01 07:40:42 -0500 (Thu, 01 Mar 2012)
New Revision: 39225
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java
Log:
[JBIDE-11105] not creating server adapter if the user chose not to create a server
adapter
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java 2012-03-01
12:31:23 UTC (rev 39224)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java 2012-03-01
12:40:42 UTC (rev 39225)
@@ -162,9 +162,11 @@
private void createServerAdapter(IProgressMonitor monitor, List<IProject>
importedProjects)
throws OpenShiftException {
- Assert.isTrue(importedProjects.size() > 0);
- IProject project = importedProjects.get(0);
- new ServerAdapterFactory().create(project, this, monitor);
+ if (isCreateServerAdapter()) {
+ Assert.isTrue(importedProjects.size() > 0);
+ IProject project = importedProjects.get(0);
+ new ServerAdapterFactory().create(project, this, monitor);
+ }
}
@Override
Show replies by date