incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1521022 - /sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java
Date Mon, 09 Sep 2013 10:05:15 GMT
Author: stefanegli
Date: Mon Sep  9 10:05:15 2013
New Revision: 1521022

URL: http://svn.apache.org/r1521022
Log:
SLING-2985 : improvement for content browser with jcr:mimeTypes supported for rendering an
appropriate image in the project explorer

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

Modified: sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java?rev=1521022&r1=1521021&r2=1521022&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java
(original)
+++ sling/trunk/tooling/ide/eclipse-ui/src/org/apache/sling/ide/eclipse/ui/nav/model/JcrNode.java
Mon Sep  9 10:05:15 2013
@@ -387,7 +387,7 @@ public class JcrNode implements IAdaptab
 		final String modifiedFilename;
 		if (jcrMimeType.equals("image/jpeg")) {
 			modifiedFilename = filename + ".jpg";
-		} else if (jcrMimeType.startsWith("image/")) {
+		} else if (jcrMimeType.contains("/")) {
 			modifiedFilename = filename + "." + (jcrMimeType.substring(jcrMimeType.indexOf("/")+1));
 		} else {
 			return null;



Mime
View raw message