Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タイトルが既に述べているように... Tree が展開された状態で ElementTreeSelectionDialog を開きたいと思います。何か方法はありますか?
よろしく、マイケル
ElementTreeSelectionDialog には、すぐに使えるこの機能はありませんが、簡単に拡張してこの動作を追加できます。単純にサブクラス化し、createTreeViewer メソッドをオーバーライドします。このメソッドのスーパー バージョンを呼び出すと、ダイアログ用に初期化された TreeViewer のハンドルが得られます。その時点で、TreeViewer.setExpanded() または TreeItem.setExpanded() API を使用して、必要なだけ拡大または縮小するだけです。