public void mouseClicked(MouseEvent e) {
TreePath treePath = ogsadaiTree.getPathForLocation(e.getX(), e.getY());
if (e.getClickCount() == 2 && treePath != null) {
if (treePath.getLastPathComponent() instanceof ColumnMetaData) {
ColumnMetaData column = (ColumnMetaData) treePath.getLastPathComponent();
String columnName = column.getName();
String tableName = column.getTable().getName();
String resourceName = ((OgsaDaiResource) treePath.getParentPath()
.getParentPath().getLastPathComponent()).getResourceLabel();
sqlEditor.updateSql(resourceName, tableName, columnName);
}