File tree Expand file tree Collapse file tree
src/main/java/jp/codic/plugins/netbeans/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99## インストール
1010
11- [ releases] ( https://github.com/codic-project/codic-netbeans-plugin/releases ) からnbmをダウンロードします。
11+ [ releases] ( https://github.com/codic-project/codic-netbeans-plugin/releases ) もしくは [ Plugin Portal ] ( http://plugins.netbeans.org/plugin/62523/codic ) からnbmをダウンロードします。
1212ツール > プラグイン > ダウンロード済 > プラグインの追加 からダウンロードしたnbmを選択してインストールします。
1313
1414## 使い方
5555## バグ・リクエスト
5656
5757バグやリクエストがありましたら、GitHubの [ Issues] ( https://github.com/codic-project/codic-netbeans-plugin/issues ) へ報告をおねがいします。
58+
59+ ## ライセンス
60+
61+ The MIT license
Original file line number Diff line number Diff line change 33 <modelVersion >4.0.0</modelVersion >
44 <groupId >jp.codic.plugins.netbeans</groupId >
55 <artifactId >codic-netbeans-plugin</artifactId >
6- <version >1.0.1 </version >
6+ <version >1.0.2-SNAPSHOT </version >
77 <packaging >nbm</packaging >
88 <properties >
99 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
Original file line number Diff line number Diff line change 4040public final class CodicUtils {
4141
4242 private static String VERSION ;
43+ private static String USER_AGENT ;
4344 private static final String USER_AGENT_FORMAT = "Codic NetBeans Plugin/%s" ; // NOI18N
4445 private static final String CODE_NAME_BASE = "jp.codic.plugins.netbneas" ; // NOI18N
4546
@@ -204,7 +205,10 @@ private static String[] toWords(String text) {
204205 }
205206
206207 public static String getUserAgent () {
207- return String .format (USER_AGENT_FORMAT , getVersion ());
208+ if (USER_AGENT == null ) {
209+ USER_AGENT = String .format (USER_AGENT_FORMAT , getVersion ());
210+ }
211+ return USER_AGENT ;
208212 }
209213
210214 public static String getVersion () {
You can’t perform that action at this time.
0 commit comments