LocalizationEditor.java 文件源码

java
阅读 39 收藏 0 点赞 0 评论 0

项目:mytourbook 作者:
private void createTableViewer() {
    table = new Table(tableComposite, SWT.VIRTUAL | SWT.FULL_SELECTION | SWT.MULTI);
    tableViewer = new TableViewer(table);
    table.setHeaderVisible(true);
    toolkit.adapt(table);
    toolkit.paintBordersFor(table);
    toolkit.adapt(table, true, true);

    tableViewer.setContentProvider(new ILazyContentProvider() {
        public void updateElement(int index) {
            tableViewer.replace(entryList.getKey(index), index);
        }
        public void dispose() {
        }
        public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
        }
    });
    tableViewer.addDoubleClickListener(new IDoubleClickListener() {
        public void doubleClick(DoubleClickEvent event) {
            new EditEntryAction().run();
        }
    });
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号