1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

watsonx Code Assistant を Eclipse で使う

Posted at

watsonx Code Assistant は、VSCode の他に Eclipse にも対応しています。
Eclipseで使用する場合のセットアップについてご紹介します。

watsonx Code Assistant の概要や VSCode での使用方法はこちらをご参照ください。

Eclipse IDE用プラグインのインストール

次の2種類のプラグインがあります。予定している作業内容に応じて選択してください。

  • watsonx Code Assistant
  • watsonx Code Assistant for Enterprise Java Applications

今回は、watsonx Code Assistant for Enterprise Java Applications をインストールする場合の例です。

Eclipse IDEからインストールする手順です。

  1. [ヘルプ] > [Eclipse マーケットプレイス] をクリックします。
    image.png

  2. watsonx Code Assistant で検索すると2つのプラグインが表示されます。今回は、IBM watsonx Code Assistant for Enterprise Java Applications[インストール] をクリックします。
    image.png

  3. ライセンスをレビューし、「使用条件の条項に同意します」にチェックし、[完了] をクリックします。
    image.png

  4. 「オーソリティーの信頼」では、[すべて選択] をクリックし [選択項目を信頼] をクリックします。
    image.png

  5. Eclipse を再起動します。

watsonx Code Assistant を開く

  1. Eclipseが再起動したら、[ウィンドウ] > [ビューの表示] > [その他] をクリックします。
    image.png

  2. [watsonx Code Assistant] フォルダを開き、[チャット] を選択して、[開く] をクリックします。
    image.png

  3. チャット ビューが開きます。Log in with your API key をクリックします。
    image.png

  4. 設定 画面が開きます。適切な情報を入力してwatsonx Code Assistantにログインします。
    SaaS版 watsonx Code Assistantにログインする場合:
    「API キー」に取得済みのAPIキーを入力し、[適用して閉じる] をクリックします。
    image.png
    SW版 watsonx Code Assistantにログインする場合:
    APIキーに加えて次の項目も入力して[適用して閉じる] をクリックします。

    • URL for your Cloud Pak for Data instance
      • 注)形式は https://<IBM Software HubインスタンスURL> (最後に/があると接続できません)
    • Enter the username of your on-premise installation instance

    image.png

あらかじめ、設定([ウィンドウ] > [設定] > [watsonx Code Assistant Settings] > [セキュリティー])で必要な情報を設定しておくことも可能です。

ログアウト

チャット画面にはログアウト・アイコンがあります。このアイコンをクリックすることでログイン中の watsonx Code Assistant からログアウトできます。

image.png

コンソールを使ってアクティビティの詳細を見る - ログレベルの変更

Eclipse IDEのコンソールビューを使用すると、プラグインが実行していることやログの詳細を確認でき、エラーの有無をチェックできます。

  1. Eclipseで [ウィンドウ] > [ビューの表示] > [コンソール] をクリックします。

  2. コンソールビューで、 選択したコンソールを表示 アイコンをクリックして、「watsonx Code Assistant」または「watsonx Code Assistant:LSP」を選択します。 どちらも、プラグインが何をしているのかについて、より詳細な情報を提供しています。
    image.png

Eclipseのコンソール表示とログを調整するには:

  1. [ウィンドウ] > [設定] をクリックし、設定 を開きます。
  2. [watsonx Code Assistant Settings] をクリックします。[ログ・レベル] に適切なレベルを選択します。
    image.png
  3. [適用して閉じる] をクリックします。

検証環境

watsonx Code Assistant

  • SW版: IBM Software Hub 5.2.1
  • SaaS版: IBM watsonx Code Assistant Standard

Eclipse IDE環境

  • Windows 11
  • Pleiades All in One Eclipse 2025-06

参考ドキュメント

SaaS版 Eclipse IDE用プラグインのインストール
SW版 Eclipse IDE用プラグインのインストール

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?