private void dataTable(BeanTableSorted from) { VariableBean vb = (VariableBean) from.getSelectedBean(); if (vb == null) return; Variable v = vb.vs; if (v instanceof Structure) { try { dataTable.setStructure((Structure) v); } catch (Exception ex) { ex.printStackTrace(); } } else return; dataWindow.show(); }
private Variable getCurrentVariable(BeanTableSorted from) { VariableBean vb = (VariableBean) from.getSelectedBean(); if (vb == null) return null; return vb.vs; }