OmegaT の背景に画像を表示します。
static の付け忘れを修正
| @@ -112,13 +112,13 @@ | ||
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - public boolean isURLShortcut(File file) { | |
| 115 | + public static boolean isURLShortcut(File file) { | |
| 116 | 116 | String name = file.getName(); |
| 117 | 117 | return (!name.startsWith(".") |
| 118 | 118 | && RE_HAS_URL_SHORTCUT_EXTENSION.matcher(name).matches()); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - public boolean isImage(File file) { | |
| 121 | + public static boolean isImage(File file) { | |
| 122 | 122 | String name = file.getName(); |
| 123 | 123 | return (!name.startsWith(".") |
| 124 | 124 | && RE_HAS_IMAGE_EXTENSION.matcher(name).matches()); |