プラグイン(4) Hello, world!
とりあえずパースペクティブをPDEへ。
- Window > Open Perspective > Other...
- Plug-in Development
- OK
プロジェクトの作成
File > New > Project...
- Select a wizard
- Plug-in Project
- Next
- Plug-in Project
- Project name: hello
- Next
- Plug-in Content
- Next
- Templates
- Hello, World
- Next
- Sample Action Set
- Finish
細かい設定は後でマニフェストエディター使った方が早い。
プラグインのテスト
現時点でとりあえず動く。
helloプロジェクトを右クリック > Run As > Eclipse Application
または、
META-INF/MANIFEST.MF > Overview > Testing > Launch an Eclipse Application
別 Eclipse が立ち上がり、ツールバーに Eclipse のアイコンが追加されているのでクリックすると "Hello, Eclipse world" と表示される。
分析
ちょっといろいろ自動生成してくれすぎたので、もう一度最初から。