• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

OmegaT のメニューバーにフォルダーツリー参照用のメニューを追加します。


Commit MetaInfo

Revision48 (tree)
Time2014-04-25 16:57:05
Authoryu-tang

Log Message

Move instantiated flag to the constructor

Change Summary

Incremental Difference

--- trunk/src/jp/sourceforge/users/yutang/omegat/plugin/foldermenu/FolderMenu.java (revision 47)
+++ trunk/src/jp/sourceforge/users/yutang/omegat/plugin/foldermenu/FolderMenu.java (revision 48)
@@ -39,7 +39,6 @@
3939 try {
4040 // Not initialize in console mode
4141 if (!instantiated) {
42- instantiated = true;
4342 CoreEvents.registerApplicationEventListener(new FolderMenu());
4443 }
4544 } catch (Throwable ex) {
@@ -48,6 +47,10 @@
4847 Core.pluginLoadingError(msg);
4948 }
5049 }
50+
51+ private FolderMenu() {
52+ FolderMenu.instantiated = true;
53+ }
5154
5255 public static void unloadPlugins() {
5356 // do nothing