incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1519971 - /sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/JcrContentContentProvider.java
Date Wed, 04 Sep 2013 10:22:42 GMT
Author: stefanegli
Date: Wed Sep  4 10:22:41 2013
New Revision: 1519971

URL: http://svn.apache.org/r1519971
Log:
SLING-2985 : only show jcr_root if the project is configured properly - that is: only if it
has the sling.content facet set

Modified:
    sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/JcrContentContentProvider.java

Modified: sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/JcrContentContentProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/JcrContentContentProvider.java?rev=1519971&r1=1519970&r2=1519971&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/JcrContentContentProvider.java
(original)
+++ sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/JcrContentContentProvider.java
Wed Sep  4 10:22:41 2013
@@ -102,6 +102,8 @@ public class JcrContentContentProvider i
 	private IFolder getSyncDir(IProject project) {
 		if (!project.isOpen()) {
 			return null;
+		} else if (!ProjectHelper.isContentProject(project)) {
+			return null;
 		}
 		IResource syncDir = project.findMember(ProjectUtil.getSyncDirectoryValue(project));
 		return (IFolder) syncDir;



Mime
View raw message