private String getLabelText() { String result; if (organization == null) return __("No current organization!"); if (organization.getName() == null) return __("Incomplete organization data!"); result = __("Current Organization:") + " \"" + organization.getName() + "\""; result += " || " + __("I am :") + " " + tree.getModel().getConstituentMyselfName(); return result; }
@Override public void actionPerformed(ActionEvent e) { if (DEBUG) System.out.println("ConstituentsPanel:action Refresh \n" + e); if (e.getSource() == this.refresh_button) { if (!this.refresh_button.isEnabled()) return; // disableRefresh(); if (tree == null) return; ConstituentsModel model = tree.getModel(); if (model == null) return; try { model.doRefreshAll(); /* Object oldRoot = model.getRoot(); model.init(model.getOrganizationID(), model.getConstituentIDMyself(), model.getConstituentGIDMyself(), model.getOrganization()); model.fireTreeStructureChanged(new TreeModelEvent(tree,new Object[]{model.root})); model.refresh(new JTree[]{tree}, oldRoot); model.runCensus(); */ } catch (P2PDDSQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } }