• R/O
  • SSH
  • HTTPS

mergedoc: Commit


Commit MetaInfo

Revision2094 (tree)
Time2019-01-03 22:48:47
Authorcypher256

Log Message

デフォルト

Change Summary

Incremental Difference

--- trunk/Pleiades/src/main/java/jp/sourceforge/mergedoc/pleiades/runtime/resource/Translations.java (revision 2093)
+++ trunk/Pleiades/src/main/java/jp/sourceforge/mergedoc/pleiades/runtime/resource/Translations.java (revision 2094)
@@ -7,6 +7,7 @@
77 package jp.sourceforge.mergedoc.pleiades.runtime.resource;
88
99 import java.util.Arrays;
10+import java.util.Collection;
1011 import java.util.Map;
1112 import java.util.concurrent.ConcurrentHashMap;
1213 import java.util.regex.Pattern;
@@ -94,6 +95,11 @@
9495 if (en instanceof Object[]) {
9596 return translate((Object[]) en, jointPoint);
9697 }
98+ if (en instanceof Collection) {
99+ Collection<?> c = (Collection<?>) en;
100+ Object[] ja = translate(c.toArray(), jointPoint);
101+ return Arrays.asList(ja);
102+ }
97103 return en;
98104 }
99105
--- trunk/Pleiades/src/main/resources/pleiades-config-idea.xml (revision 2093)
+++ trunk/Pleiades/src/main/resources/pleiades-config-idea.xml (revision 2094)
@@ -143,28 +143,8 @@
143143 </jointPoint>
144144
145145 </pointCut>
146- <pointCut editPoint="call" timing="around">
147- <advice><![CDATA[
148- $_ = $proceed($$);
149- // キー限定: 設定上部のパンくずリスト (ビルド、実行、デプロイ > デバッガー > データ・ビュー)
150- if ($2 != null && $2.endsWith("display.name"))
151- $_ = ?{translation.class}.translateIgnoreMnemonic($_, null);
152- ]]></advice>
153-
154- <jointPoint className="com.intellij.BundleBase" methodName="messageOrDefault"/>
155-
156- </pointCut>
157146 <pointCut editPoint="execution" timing="after">
158147 <advice><![CDATA[
159- return ?{translation.class}.translateIgnoreMnemonic($_, null);
160- ]]></advice>
161-
162- <!-- 設定上部のパンくずリスト (外観 & 振る舞い など) -->
163- <jointPoint className="com.intellij.openapi.options.ex.ConfigurableExtensionPointUtil" methodName="getString"/>
164-
165- </pointCut>
166- <pointCut editPoint="execution" timing="after">
167- <advice><![CDATA[
168148 return ?{translation.class}.translateUnderscoreMnemonic($_, null);
169149 ]]></advice>
170150
@@ -178,13 +158,23 @@
178158 <!-- プロジェクトビュー > 外部ライブラリー -->
179159 <jointPoint className="com.intellij.ide.IdeBundle" methodName="message"/>
180160
181- <!-- 設定 > エディター > カラー・スキームの切り替え > パンくずリスト末尾要素名 -->
182- <jointPoint className="com.intellij.openapi.options.OptionsBundle" methodName="message"/>
183-
184161 <!-- 設定 > エディター > カラー・スキームの切り替え > 言語デフォルト > セマンティック強調表示 -->
185162 <jointPoint className="com.intellij.openapi.application.ApplicationBundle" methodName="message"/>
186163
164+ <!-- 設定 > パンくずリスト > 右クリックメニュー -->
165+ <jointPoint className="com.intellij.idea.ActionsBundle" methodName="message"/>
166+
187167 </pointCut>
168+ <pointCut editPoint="execution" timing="after">
169+ <advice><![CDATA[
170+ $_ = ?{translation.class}.translate($_, null);
171+ ]]></advice>
172+
173+ <!-- 設定 > パンくずリスト (Collection<String>) -->
174+ <jointPoint className="com.intellij.openapi.options.newEditor.SettingsTreeView" methodName="getPathNames"
175+ descriptor="(Lcom/intellij/openapi/options/newEditor/SettingsTreeView$MyNode;)Ljava/util/Collection;"/>
176+
177+ </pointCut>
188178 <!-- ########## END -->
189179
190180 <!-- 翻訳 (after) ニーモニックなし -->
@@ -936,7 +926,7 @@
936926 else if ($0 instanceof javax.swing.JToggleButton || $0.getClass().getName().equals("javax.swing.JButton"))
937927 $1 = ?{translation.class}.translate($1, null);
938928 // JMenuItem (git コミットダイアログのコミットボタンメニュー)
939- else if ($1 != null && $1.endsWith("..."))
929+ else if ($1.endsWith("..."))
940930 $1 = ?{translation.class}.translate($1, null);
941931 // ----- ↓高速化のため使用しない (JOINT_POINT を渡さない限り除外定義は使用されない) -----
942932 // JMenuItem、JButton サブクラス (コンボなど) の場合は除外定義を使用する
@@ -1498,7 +1488,7 @@
14981488
14991489 <property name="trace.pattern" value=""/>
15001490 <property name="trace.is.ja" value="false"/>
1501- <property name="trace.disabled" value="false"/>
1491+ <property name="trace.disabled" value="true"/>
15021492 <property name="log.desc.class" value=""/>
15031493
15041494 </pleiades>
Show on old repository browser