Author: adietish
Date: 2012-05-31 19:24:34 -0400 (Thu, 31 May 2012)
New Revision: 41604
Modified:
trunk/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:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java 2012-05-31
23:24:22 UTC (rev 41603)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java 2012-05-31
23:24:34 UTC (rev 41604)
@@ -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();
Show replies by date