OmegaT の背景に画像を表示します。
ユーティリティ関数 getMoeConfigDir() を追加
| @@ -30,6 +30,7 @@ | ||
| 30 | 30 | import org.omegat.util.LFileCopy; |
| 31 | 31 | import org.omegat.util.Log; |
| 32 | 32 | import org.omegat.util.OConsts; |
| 33 | +import org.omegat.util.StaticUtils; | |
| 33 | 34 | |
| 34 | 35 | /** |
| 35 | 36 | * |
| @@ -123,4 +124,8 @@ | ||
| 123 | 124 | && RE_HAS_IMAGE_EXTENSION.matcher(name).matches()); |
| 124 | 125 | } |
| 125 | 126 | |
| 127 | + public static File getMoeConfigDir() { | |
| 128 | + return new File(StaticUtils.getConfigDir(), "moenizer"); | |
| 129 | + } | |
| 130 | + | |
| 126 | 131 | } |