cmDelete = new JButton(resources.getString("Delete"));
cmDuplicate = new JButton(resources.getString("Duplicate"));
dsLabel = new JLabel(resources.getString("ChooseADataSource"));
lds = new JLabel();
dstree = FilteredSourceTree.getFromPool("PropertiesPanel0");
dstree.getSourceTree().addTreeSelectionListener(new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent e) {
updateWarnings();
if (((dstree.getSelectedSourceOrCollection()) instanceof DataSource)
&& canSetDataSource((DataSource) dstree.getSelectedSourceOrCollection())) {
lds.setText(DataInfo.getId(dstree.getSelectedSourceOrCollection()));