-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
169 lines (134 loc) · 8.91 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>Development-tips by IntelliJPluginDevJP</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
</head>
<body>
<section class="page-header">
<h1 class="project-name">Development-tips</h1>
<h2 class="project-tagline"></h2>
<a href="https://github.com/IntelliJPluginDevJP/development-tips" class="btn">View on GitHub</a>
<a href="https://github.com/IntelliJPluginDevJP/development-tips/zipball/master" class="btn">Download .zip</a>
<a href="https://github.com/IntelliJPluginDevJP/development-tips/tarball/master" class="btn">Download .tar.gz</a>
</section>
<section class="main-content">
<h3>
<a id="公式ドキュメント" class="anchor" href="#%E5%85%AC%E5%BC%8F%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88" aria-hidden="true"><span class="octicon octicon-link"></span></a>公式ドキュメント</h3>
<ul>
<li><a href="http://www.jetbrains.org/intellij/sdk/docs/">IntelliJ Platform SDK Documentation</a></li>
<li><a href="https://www.jetbrains.com/idea/plugins/">IntelliJ IDEA Plugins</a></li>
<li><a href="https://github.com/JetBrains/intellij-community">IntelliJ Community GitHub</a></li>
</ul>
<h3>
<a id="intellij-plugin-勉強会の参加者が作成したplugin" class="anchor" href="#intellij-plugin-%E5%8B%89%E5%BC%B7%E4%BC%9A%E3%81%AE%E5%8F%82%E5%8A%A0%E8%80%85%E3%81%8C%E4%BD%9C%E6%88%90%E3%81%97%E3%81%9Fplugin" aria-hidden="true"><span class="octicon octicon-link"></span></a>IntelliJ Plugin 勉強会の参加者が作成したPlugin</h3>
<ul>
<li>
<a href="https://github.com/shiraji/HideToolWindowsEx">HideToolWindowsEx by @shiraji</a>
<ul>
<li>エディタで文字入力するとtool window 閉じる</li>
</ul>
</li>
<li>
<a href="https://github.com/shiraji/GradleConfirmation">GradleConfirmation by @shiraji</a>
<ul>
<li>gradle pluginのplugin</li>
</ul>
</li>
<li>
<a href="https://github.com/shiraji/plugin-importer-exporter">plugin-importer-exporter by @shiraji</a>
<ul>
<li>plugin情報をファイルへ。ファイルからダウンロードする</li>
</ul>
</li>
<li>
<a href="https://github.com/takahirom/android-postfix-plugin">android-postfix-plugin by @takahirom</a>
<ul>
<li>Postfix CompletionのAndroidで使える感じのものです</li>
</ul>
</li>
<li>
<a href="https://github.com/takahirom/HungarianInspectionPlugin">HungarianInspectionPlugin by @takahirom</a>
<ul>
<li>ハンガリアン記法とそうでない記法を警告出してフィックスできます</li>
</ul>
</li>
<li>
<a href="https://github.com/androhi/AndroidDrawableViewer">AndroidDrawableViewer by @androhi</a>
<ul>
<li>AndroidプロジェクトのDrawableリソースをリスト表示できます</li>
</ul>
</li>
</ul>
<h3>
<a id="qa" class="anchor" href="#qa" aria-hidden="true"><span class="octicon octicon-link"></span></a>Q&A</h3>
<ul>
<li>
<p>Q:HowTo的なドキュメントはどこ?</p>
<ul>
<li>A:公式以外あまり無い。</li>
<li>A:OpenAPIのフォーラムは親切。1日くらいで回答付く(<a href="https://devnet.jetbrains.com/community/idea/open_api_and_plugin_development%EF%BC%89">https://devnet.jetbrains.com/community/idea/open_api_and_plugin_development)</a>
</li>
<li>A:とにかく他の人のコードを見る</li>
</ul>
</li>
<li><p>Q:これ(Javaの解析ツール)をプラグイン化したい(<a href="https://github.com/yusuke" class="user-mention">@yusuke</a>) → <a href="http://samuraism.jp/samurai/">http://samuraism.jp/samurai/</a></p></li>
<li><p>Q:Java 8以降縛りとかにしてもok?</p></li>
<li>
<p>Q:scalaでplugin作りたい!</p>
<ul>
<li>ファイルがjavaファイルになってしまうけどrenameするしかないの?</li>
</ul>
</li>
<li>
<p>Q:テストはどうすればいい?</p>
<ul>
<li>いろいろ制約があって難易度高い</li>
<li>ちゃんとやってるプロジェクトが少ない</li>
</ul>
</li>
<li>
<p>Q:ダイアログのカスタマイズする方法(<a href="https://github.com/androhi" class="user-mention">@androhi</a>)</p>
<ul>
<li>A:割りきってSwingで構築する手もある</li>
</ul>
</li>
</ul>
<h3>
<a id="tips" class="anchor" href="#tips" aria-hidden="true"><span class="octicon octicon-link"></span></a>Tips</h3>
<ul>
<li><p>DialogWrapperを使ってダイアログを表示するときは必ずsetTitle()でタイトルを入れたほうがいい。(最悪実装した処理が正常に動きませんでした)</p></li>
<li><p>plugin.xmlのidea-pluginタグにurlを設定すると、Plugin Repositoryのページにwebsiteという項目が追加できる</p></li>
<li><p>Android Studio 用の Plugin 開発時に起動するエディタを Android Studio にする方法</p></li>
</ul>
<h5>
<a id="1-新規-plugin-作成ウィザードで-sdk-選択のときにnew-をクリックする" class="anchor" href="#1-%E6%96%B0%E8%A6%8F-plugin-%E4%BD%9C%E6%88%90%E3%82%A6%E3%82%A3%E3%82%B6%E3%83%BC%E3%83%89%E3%81%A7-sdk-%E9%81%B8%E6%8A%9E%E3%81%AE%E3%81%A8%E3%81%8D%E3%81%ABnew-%E3%82%92%E3%82%AF%E3%83%AA%E3%83%83%E3%82%AF%E3%81%99%E3%82%8B" aria-hidden="true"><span class="octicon octicon-link"></span></a>1. 新規 Plugin 作成ウィザードで SDK 選択のときに、<strong>New…</strong> をクリックする</h5>
<p><img src="https://raw.githubusercontent.com/IntelliJPluginDevJP/development-tips/gh-pages/images/plugin_tips_1.png" alt="step1"></p>
<h5>
<a id="2-アプリケーションの下の-android-studio-を指定する" class="anchor" href="#2-%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%E4%B8%8B%E3%81%AE-android-studio-%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%99%E3%82%8B" aria-hidden="true"><span class="octicon octicon-link"></span></a>2. アプリケーションの下の Android Studio を指定する</h5>
<p><img src="https://raw.githubusercontent.com/IntelliJPluginDevJP/development-tips/gh-pages/images/plugin_tips_2.png" alt="step2"></p>
<h5>
<a id="3-java-sdk-を-16-にする" class="anchor" href="#3-java-sdk-%E3%82%92-16-%E3%81%AB%E3%81%99%E3%82%8B" aria-hidden="true"><span class="octicon octicon-link"></span></a>3. Java SDK を 1.6 にする</h5>
<p><img src="https://raw.githubusercontent.com/IntelliJPluginDevJP/development-tips/gh-pages/images/plugin_tips_3.png" alt="step3"></p>
<h5>
<a id="4-android-studio-を-project-sdk-に選んで-intellij-platform-plugin-プロジェクトを作成" class="anchor" href="#4-android-studio-%E3%82%92-project-sdk-%E3%81%AB%E9%81%B8%E3%82%93%E3%81%A7-intellij-platform-plugin-%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%82%92%E4%BD%9C%E6%88%90" aria-hidden="true"><span class="octicon octicon-link"></span></a>4. Android Studio を Project SDK に選んで IntelliJ Platform Plugin プロジェクトを作成</h5>
<p><img src="https://raw.githubusercontent.com/IntelliJPluginDevJP/development-tips/gh-pages/images/plugin_tips_4.png" alt="step4"></p>
<h5>
<a id="5-run-する" class="anchor" href="#5-run-%E3%81%99%E3%82%8B" aria-hidden="true"><span class="octicon octicon-link"></span></a>5. Run する</h5>
<h5>
<a id="6-android-studio-が立ち上がる" class="anchor" href="#6-android-studio-%E3%81%8C%E7%AB%8B%E3%81%A1%E4%B8%8A%E3%81%8C%E3%82%8B" aria-hidden="true"><span class="octicon octicon-link"></span></a>6. Android Studio が立ち上がる</h5>
<h6>
<a id="androidsdk-のインストールウィザードが立ち上がるが無視して大丈夫っぽい" class="anchor" href="#androidsdk-%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%82%A6%E3%82%A3%E3%82%B6%E3%83%BC%E3%83%89%E3%81%8C%E7%AB%8B%E3%81%A1%E4%B8%8A%E3%81%8C%E3%82%8B%E3%81%8C%E7%84%A1%E8%A6%96%E3%81%97%E3%81%A6%E5%A4%A7%E4%B8%88%E5%A4%AB%E3%81%A3%E3%81%BD%E3%81%84" aria-hidden="true"><span class="octicon octicon-link"></span></a>AndroidSDK のインストールウィザードが立ち上がるが無視して大丈夫っぽい</h6>
<p><img src="https://raw.githubusercontent.com/IntelliJPluginDevJP/development-tips/gh-pages/images/plugin_tips_5.png" alt="step5"></p>
<footer class="site-footer">
<span class="site-footer-owner"><a href="https://github.com/IntelliJPluginDevJP/development-tips">Development-tips</a> is maintained by <a href="https://github.com/IntelliJPluginDevJP">IntelliJPluginDevJP</a>.</span>
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a href="https://twitter.com/jasonlong">Jason Long</a>.</span>
</footer>
</section>
</body>
</html>