[jbosstools-commits] JBoss Tools SVN: r43857 - trunk/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 Sep 20 05:57:30 EDT 2012
Author: adietish
Date: 2012-09-20 05:57:30 -0400 (Thu, 20 Sep 2012)
New Revision: 43857
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java
Log:
corrected formatting (for better readability)
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java 2012-09-20 09:15:31 UTC (rev 43856)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java 2012-09-20 09:57:30 UTC (rev 43857)
@@ -273,21 +273,23 @@
final String repoPath = (String) repoPathObservable.getValue();
final String applicationName = (String) applicationNameModelObservable.getValue();
final boolean newProject = (Boolean) newProjectModelObservable.getValue();
-
- if(newProject) {
- final IPath repoResourcePath = new Path(repoPath);
- if (repoResourcePath.isEmpty()
- || !repoResourcePath.isAbsolute()
- || !repoResourcePath.toFile().canWrite()) {
- return OpenShiftUIActivator.createErrorStatus("The location '" + repoResourcePath.toOSString() + "' does not exist or is not writeable.");
+
+ if (newProject) {
+ final IPath repoResourcePath = new Path(repoPath);
+ if (repoResourcePath.isEmpty()
+ || !repoResourcePath.isAbsolute()
+ || !repoResourcePath.toFile().canWrite()) {
+ return OpenShiftUIActivator.createErrorStatus("The location '" + repoResourcePath.toOSString()
+ + "' does not exist or is not writeable.");
+ }
+ final IPath applicationPath = applicationName != null ? repoResourcePath.append(new Path(
+ applicationName)) : null;
+ if (applicationPath != null && applicationPath.toFile().exists()) {
+ return OpenShiftUIActivator.createErrorStatus(
+ NLS.bind("The location \"{0}\" already contains a folder named \"{1}\"",
+ repoResourcePath.toOSString(), applicationName));
+ }
}
- final IPath applicationPath = applicationName != null ? repoResourcePath.append(new Path(applicationName)) : null;
- if (applicationPath != null && applicationPath.toFile().exists()) {
- return OpenShiftUIActivator.createErrorStatus(
- NLS.bind("The location \"{0}\" already contains a folder named \"{1}\"",
- repoResourcePath.toOSString(), applicationName));
- }
- }
return ValidationStatus.ok();
}
More information about the jbosstools-commits
mailing list