incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asa...@apache.org
Subject svn commit: r1405098 - /sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/SlingclipseListener.java
Date Fri, 02 Nov 2012 18:56:28 GMT
Author: asanso
Date: Fri Nov  2 18:56:27 2012
New Revision: 1405098

URL: http://svn.apache.org/viewvc?rev=1405098&view=rev
Log:
SLING-2646 - adding support for .content.xml files on save

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

Modified: sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/SlingclipseListener.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/SlingclipseListener.java?rev=1405098&r1=1405097&r2=1405098&view=diff
==============================================================================
--- sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/SlingclipseListener.java
(original)
+++ sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/SlingclipseListener.java
Fri Nov  2 18:56:27 2012
@@ -104,7 +104,7 @@ public class SlingclipseListener impleme
 					if (delta.getKind() == IResourceDelta.REMOVED) {
 						repository.deleteNode(fileInfo);
 					} else {
-						repository.addNode(fileInfo);
+						addNode(repository,fileInfo);
 					}
 
 				}
@@ -114,4 +114,12 @@ public class SlingclipseListener impleme
 		};
 		return result;
 	}
+	
+	private void addNode(Repository repository,FileInfo fileInfo){
+		if (SlingclipseHelper.CONTENT_XML.equals(fileInfo.getName())){
+			//DO NOTHING FOR NOW
+		}else{	
+			repository.addNode(fileInfo);
+		}
+	}
 }



Mime
View raw message