// 一覧用テンプレート #topicpath ---- *** [[Google Web APIs>Webサービス/Google Web APIs]] でプラグインを作る [#v5867095] Eclipseプラグイン開発の練習として、[[Google Web APIs>Webサービス/Google Web APIs]]を使ったプラグインを作ってみました。要件としては -Eclipseでコーディング中に、Googleにアクセスしたい。 -エディタ上のテキストを選択して、ポップアップメニューからGoogle検索 -検索結果一覧から、ダブルクリックとかポップアップメニューでブラウザを起動して、そのサイトを表示する。 -結果一覧からドラッグ&ドロップでURLを作りたい といった感じですかね。 #ref(shortcut.png) ~ #ref(shortcut2.png) Eclipse自体を見ていると、プラグイン開発はGUI部分とビジネスロジックのCore部分を分けて作るのが基本みたいです。なので今回作成するプラグイン構成は -nu.mine.kino.plugin.google.core -nu.mine.kino.plugin.google.ui な感じにしました。 -[[まずはCoreをつくる>Eclipse/プラグイン開発のTIPS集/GooglePlugin/まずはCoreをつくる]] -[[UI部のロジックをつくる>Eclipse/プラグイン開発のTIPS集/GooglePlugin/UI部のロジックをつくる]] -[[設定を保持するIPreferenceStoreを使う>Eclipse/プラグイン開発のTIPS集/GooglePlugin/設定を保持するIPreferenceStoreを使う]] -[[検索結果一覧を表示するビュー>Eclipse/プラグイン開発のTIPS集/GooglePlugin/検索結果一覧を表示するビューの作成]] -[[検索ロジックをビューに実装>Eclipse/プラグイン開発のTIPS集/GooglePlugin/実際の検索ロジックをビューに実装]] -[[ポップアップメニューをエディタに実装>Eclipse/プラグイン開発のTIPS集/GooglePlugin/ポップアップメニューをエディタに実装]] -[[LabelProviderを設定して、TableViewに情報を表示>Eclipse/プラグイン開発のTIPS集/GooglePlugin/LabelProviderで表示を制御する]] -[[ダブルクリックやポップアップメニューから、ブラウザを開く>Eclipse/プラグイン開発のTIPS集/GooglePlugin/ダブルクリックやポップアップメニューから、ブラウザを開く]] -[[ビューのツールバーにいろいろな機能を実装>Eclipse/プラグイン開発のTIPS集/GooglePlugin/ビューのツールバーにいろいろな機能を実装]] -[[ドラッグアンドドロップを実装>Eclipse/プラグイン開発のTIPS集/GooglePlugin/ドラッグアンドドロップを実装する]] -[[Featureを作成してUpdateSiteを作成する>Eclipse/プラグイン開発のTIPS集/GooglePlugin/Featureを作成してUpdateSiteを作成する]] ***インストール [#v2ca31ab] 更新サイトよりインストール可能です。 URLはこちら。 -http://www.masatom.in/update/ Eclipse3.1で開発しているので、今のところ3.1でしか稼動しないかも? ***ライセンス [#b13b1642] 基本的にCPLとか、適当にやっちゃいたいところですが、Google Web APIsが個人・非商用のみOKなのでそれに準じる、とするべきなんですかねえ。Google Web APIsのライセンスについては[[Terms and Conditions for Google Web API Service:http://www.google.com/apis/api_terms.html]]をご確認ください((具体的にはgoogleapi.jarを使わないでWSDLから直接ライブラリを作成してるので、このライセンスに準じるべきなのかどうかなどもようわからんです))。 結局、ライセンスはとりあえず無難にGPLにすることにしました。 ---- この記事は #vote(おもしろかった[3],そうでもない[0]) -motorized scooter rental http://motorized-scooter.bht0a.info/motorized-scooter-rental---.html used motorized scooters http://motorized-scooter.bht0a.info/used-motorized-scooters.html build a motorized scooter http://motorized-scooter.bht0a.info/build-a-motorized-scooter.html ??紊х??腴?藥? <a href=http://motorized-scooter.bht0a.info/how-to-build-a-motorized-scooter.html> how to build a motorized scooter </a> <a href=http://motorized-scooter.bht0a.info/motorized-scooter-law--.html> motorized scooter law </a> <a href=http://motorized-scooter.bht0a.info/motorized-scooter-rental---.html> motorized scooter rental </a> ??紊х??腴?藥? [url=http://motorized-scooter.bht0a.info/build-a-motorized-scooter.html] build a motorized scooter [/url] [url=http://motorized-scooter.bht0a.info/used-motorized-scooters.html] used motorized scooters [/url] [url=http://motorized-scooter.bht0a.info/motorized-scooters-canada.html] motorized scooters canada [/url] ??紊х??腴?藥? -- [[motorized scooter]] &new{2006-08-24 06:48:20 (木)}; -cheap cars http://honda-scooter.gjjgt.info/cheap-cars--.html solar powered cars http://honda-scooter.gjjgt.info/solar-powered-cars--.html rental cars http://honda-scooter.gjjgt.info/rental-cars---.html ??紊х??腴?藥? <a href=http://honda-scooter.gjjgt.info/wedding-cars.html> wedding cars </a> <a href=http://honda-scooter.gjjgt.info/melbourne-used-cars.html> melbourne used cars </a> <a href=http://honda-scooter.gjjgt.info/sell-used-cars.html> sell used cars </a> ??紊х??腴?藥? [url=http://honda-scooter.gjjgt.info/collector-cars.html] collector cars [/url] [url=http://honda-scooter.gjjgt.info/cars-com.html] cars com [/url] [url=http://honda-scooter.gjjgt.info/auto's--.html] auto's [/url] ??紊х??腴?藥? -- [[honda scooter]] &new{2006-08-24 07:42:57 (木)}; -electric motor scooter with seat http://motor-scooter.bht0a.info/electric-motor-scooter-with-seat.html motor scooter covers http://motor-scooter.bht0a.info/motor-scooter-covers.html 50cc motor http://motor-scooter.bht0a.info/50cc-motor.html ??紊х??腴?藥? <a href=http://motor-scooter.bht0a.info/motor-scooter-clubs.html> motor scooter clubs </a> <a href=http://motor-scooter.bht0a.info/piaggio-typhoon-motor-scooter.html> piaggio typhoon motor scooter </a> <a href=http://motor-scooter.bht0a.info/reflex-motor-scooter---.html> reflex motor scooter </a> ??紊х??腴?藥? [url=http://motor-scooter.bht0a.info/motor-scooter-law.html] motor scooter law [/url] [url=http://motor-scooter.bht0a.info/motor-scooter-plans.html] motor scooter plans [/url] [url=http://motor-scooter.bht0a.info/motor-scooter-repair.html] motor scooter repair [/url] ??紊х??腴?藥? -- [[motor scooter]] &new{2006-08-24 08:35:39 (木)}; #comment #topicpath SIZE(10){現在のアクセス:&counter;}