[jbosstools-commits] JBoss Tools SVN: r41606 - branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu May 31 19:52:11 EDT 2012


Author: adietish
Date: 2012-05-31 19:52:11 -0400 (Thu, 31 May 2012)
New Revision: 41606

Modified:
   branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
Log:
[JBIDE-11213] removed warning if OpenShift app-name matches project name in workspace

Modified: branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
===================================================================
--- branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java	2012-05-31 23:26:48 UTC (rev 41605)
+++ branches/jbosstools-3.3.x/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java	2012-05-31 23:52:11 UTC (rev 41606)
@@ -25,8 +25,6 @@
 import org.eclipse.core.databinding.observable.value.ValueChangeEvent;
 import org.eclipse.core.databinding.validation.MultiValidator;
 import org.eclipse.core.databinding.validation.ValidationStatus;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Status;
@@ -847,18 +845,9 @@
 				return ValidationStatus.error(
 						"An application with the same name already exists on OpenShift.");
 			}
-			if (isExistingProject(applicationName)) {
-				return ValidationStatus
-						.warning("A project already exists with the same application name. This can cause problems when importing.");
-			}
 			return ValidationStatus.ok();
 		}
 
-		private boolean isExistingProject(String name) {
-			IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
-			return project.exists();
-		}
-
 		@Override
 		public IObservableList getTargets() {
 			WritableList targets = new WritableList();



More information about the jbosstools-commits mailing list