EclipseにSmarty Editorを設定
- 2008/10/29
- 21:00
すでにGoogleから0.5.5が出ていることは書いたけど、エラー状況と設定方法を書いておこう。
◆エラー状況
0.5.4では以下のようなエラーが出て、Smartyの編集ができない。

◆設定方法
設定完了後にtplを開いてちゃんと表示されればOK。
◆エラー状況
0.5.4では以下のようなエラーが出て、Smartyの編集ができない。

Error opening the editor.
Reason: tried to access field org.eclipse.php.internal.iu.editor.PHPStructuredEditor.jsExternal from class org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor
◆設定方法
- Google CodeからSmarty_PDT_0.5.5.zipをダウンロード
- Eclipseのフォルダへコピー
- Eclipseを再起動
- 製品構成からフィーチャーを使用可能へ変更
http://code.google.com/p/smartypdt/issues/detail?colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&q=31&can=1&id=31#c11

ダウンロードしたファイルを解凍し、Eclipseのfeatures/pluginsフォルダへそのままコピー。
※ フォルダの中身をそのままコピーします
設定を反映させるため、Eclipseを再起動。
Eclipseで ヘルプ>ソフトウェア更新>構成の管理 (Pleiadesで日本語化されたメニュー名)で、Smarty Feature 0.5.5を使用可能に変更。

もし、古いバージョンを設定している場合は、"別のバージョンとの置換"を選択します。

これで完了!
設定完了後にtplを開いてちゃんと表示されればOK。