OmegaT の背景に画像を表示します。
Java Web Start 対応
@@ -48,6 +48,9 @@ | ||
48 | 48 | throw new RuntimeException("Moenizer plugin is not compatibled " |
49 | 49 | + "with current VLDocking framework library.\n" |
50 | 50 | + "Please update to OmegaT 3.1.2u1 or later."); |
51 | + } else if (isRunningJavaWebStart()) { | |
52 | + // Just log it, no error. | |
53 | + Log.log("Moenizer plugin is not working with Java Web Start."); | |
51 | 54 | } else { |
52 | 55 | CoreEvents.registerApplicationEventListener(new Moenizer()); |
53 | 56 | instantiated = true; |
@@ -121,4 +124,14 @@ | ||
121 | 124 | //Log.log("-- onConfigUpdate()"); //@@TODO 要・実装 |
122 | 125 | } |
123 | 126 | |
127 | + private static boolean isRunningJavaWebStart() { | |
128 | + try { | |
129 | + Class.forName("javax.jnlp.ServiceManager"); | |
130 | + return true; | |
131 | + } catch (ClassNotFoundException ex) { | |
132 | + // ignore | |
133 | + } | |
134 | + return false; | |
135 | + } | |
136 | + | |
124 | 137 | } |