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.
[追加]ボタンがありTableViewer、アプリケーションにあります。[追加]ボタンを押すと、モデルに新しい要素が追加され、そのビューアが更新されます。
TableViewer
問題は、この新しく追加されたアイテムをビューアで選択する方法です。
tableViewer.setSelection(new StructuredSelection(modelElement), true);
最後のtrueは、必要に応じて、新しく選択された項目までテーブルをスクロールします。
true