@Override protected void prepData() { super.prepData(); try { list_Alldpt = AppContext.getInstance().getDepartmentService().getDepartments(); } catch (Exception e) { OwnerLog.writeExceptionLog(e); MessageDialogManager.openDefultError(null, e); } }
@Override protected void initListener() { super.initListener(); this.treeView.addDoubleClickListener( new IDoubleClickListener() { @Override public void doubleClick(DoubleClickEvent event) { Department dpt = (Department) getSelectionObj().getEntity(); if (dpt.getParent() != null) { new DepartmentDialog(getViewSite().getShell(), dpt, dpt.getParent()).open(); } } }); }
@Override public void clickNode() { super.clickNode(); this.getTableViewer().getTable().select(0); }