incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asa...@apache.org
Subject svn commit: r1405088 - /sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizardPage.java
Date Fri, 02 Nov 2012 18:23:29 GMT
Author: asanso
Date: Fri Nov  2 18:23:28 2012
New Revision: 1405088

URL: http://svn.apache.org/viewvc?rev=1405088&view=rev
Log:
SLING-2636 - [Tooling] Add ability to Import from Sling Repository. Adding some UI validation

Modified:
    sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizardPage.java

Modified: sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizardPage.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizardPage.java?rev=1405088&r1=1405087&r2=1405088&view=diff
==============================================================================
--- sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizardPage.java
(original)
+++ sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizardPage.java
Fri Nov  2 18:23:28 2012
@@ -259,6 +259,12 @@ public class ImportWizardPage extends Wi
 			setErrorMessage("Please enter valid server information");
 			return false;
 		}
+		IPath containerNameField= super.getResourcePath();  
+		if (!containerNameField.toOSString().endsWith(SlingclipseHelper.JCR_ROOT)){
+			setErrorMessage("Please enter a valid Sling project folder (e.g. jcr_content)");
+			return false;
+		}
+		
 		return true;
 	}
 



Mime
View raw message