标签:
viewer.setSelection(new StructuredSelection(((List)viewer.getInput())));
StructuredSelection有多个构造方法,可以看一下。
jface viewer 全选
原文地址:http://www.cnblogs.com/demonrain/p/4326253.html