diff options
author | Tor Norbye <tnorbye@google.com> | 2013-08-09 11:14:19 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2013-08-09 11:14:19 -0700 |
commit | 9fdfa377b20b105e3a9907d32434787f75781c35 (patch) | |
tree | 1da3a4f33aab64842d79ab224b4eefba18b6982b /images | |
parent | 6739a8f0977b70ddc8a8283b169902da3f2eecb3 (diff) | |
download | idea-9fdfa377b20b105e3a9907d32434787f75781c35.tar.gz |
Snapshot c23e9e6b18204526144f9866f4eb487aae363099 from master branch of git://git.jetbrains.org/idea/community.git
Change-Id: I87950e41c2b37a506995305a033233ea7c30e6e1
Diffstat (limited to 'images')
-rw-r--r-- | images/src/org/intellij/images/fileTypes/ImageDocumentationProvider.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/images/src/org/intellij/images/fileTypes/ImageDocumentationProvider.java b/images/src/org/intellij/images/fileTypes/ImageDocumentationProvider.java index e0698ed140b1..ef0e14aa4515 100644 --- a/images/src/org/intellij/images/fileTypes/ImageDocumentationProvider.java +++ b/images/src/org/intellij/images/fileTypes/ImageDocumentationProvider.java @@ -43,6 +43,7 @@ public class ImageDocumentationProvider extends AbstractDocumentationProvider { final VirtualFile file = ((PsiFileSystemItem)element).getVirtualFile(); if (file instanceof VirtualFileWithId && !DumbService.isDumb(element.getProject())) { ImageInfoIndex.processValues(file, new FileBasedIndex.ValueProcessor<ImageInfoIndex.ImageInfo>() { + @Override public boolean process(VirtualFile file, ImageInfoIndex.ImageInfo value) { int imageWidth = value.width; int imageHeight = value.height; @@ -62,7 +63,7 @@ public class ImageDocumentationProvider extends AbstractDocumentationProvider { result[0] = String.format("<html><body><img src=\"%s\" width=\"%s\" height=\"%s\"><p>%sx%s, %sbpp</p><body></html>", url, imageWidth, imageHeight, value.width, value.height, value.bpp); } - catch (URISyntaxException e) { + catch (URISyntaxException ignored) { // nothing } return true; |