예제 #1
0
 @Override
 protected void prepData() {
   super.prepData();
   try {
     list_Alldpt = AppContext.getInstance().getDepartmentService().getDepartments();
   } catch (Exception e) {
     OwnerLog.writeExceptionLog(e);
     MessageDialogManager.openDefultError(null, e);
   }
 }
예제 #2
0
  @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();
            }
          }
        });
  }
예제 #3
0
 @Override
 public void clickNode() {
   super.clickNode();
   this.getTableViewer().getTable().select(0);
 }