equal
deleted
inserted
replaced
199 |
199 |
200 fileExtensions = extensionStrings; |
200 fileExtensions = extensionStrings; |
201 } |
201 } |
202 |
202 |
203 private boolean isStarred(String typeName) { |
203 private boolean isStarred(String typeName) { |
204 return (typeName != null) |
204 return typeName != null && typeName.endsWith("/*"); |
205 && (typeName.length() > 0) |
|
206 && (typeName.endsWith("/*")); |
|
207 } |
205 } |
208 |
206 |
209 /** |
207 /** |
210 * Invoke the MIME type specific behavior for this MIME type. |
208 * Invoke the MIME type specific behavior for this MIME type. |
211 * Returned value can be one of several types: |
209 * Returned value can be one of several types: |
298 if (image != null) { |
296 if (image != null) { |
299 sj.add("icon=" + image); |
297 sj.add("icon=" + image); |
300 } |
298 } |
301 |
299 |
302 String extensions = getExtensionsAsList(); |
300 String extensions = getExtensionsAsList(); |
303 if (extensions.length() > 0) { |
301 if (!extensions.isEmpty()) { |
304 sj.add("file_extensions=" + extensions); |
302 sj.add("file_extensions=" + extensions); |
305 } |
303 } |
306 |
304 |
307 String description = getDescription(); |
305 String description = getDescription(); |
308 if (description != null && !description.equals(getType())) { |
306 if (description != null && !description.equals(getType())) { |