プラグイン(4) Hello, world!

とりあえずパースペクティブをPDEへ。

  • Window > Open Perspective > Other...
    1. Plug-in Development
    2. OK

プロジェクトの作成

File > New > Project...

  1. Select a wizard
    1. Plug-in Project
    2. Next
  2. Plug-in Project
    1. Project name: hello
    2. Next
  3. Plug-in Content
    1. Next
  4. Templates
    1. Hello, World
    2. Next
  5. Sample Action Set
    1. Finish

細かい設定は後でマニフェストエディター使った方が早い。

プラグインのテスト

現時点でとりあえず動く。

helloプロジェクトを右クリック > Run As > Eclipse Application

または、

META-INF/MANIFEST.MF > Overview > Testing > Launch an Eclipse Application

Eclipse が立ち上がり、ツールバーEclipse のアイコンが追加されているのでクリックすると "Hello, Eclipse world" と表示される。

分析

ちょっといろいろ自動生成してくれすぎたので、もう一度最初から。