addDatastoreButton.setMargin(buttonMargin);
addDatastoreButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
MutableDatastoreCatalog mutableDatastoreCatalog = (MutableDatastoreCatalog) datastoreCatalog;
mutableDatastoreCatalog.addDatastore(datastore);
addDatastoreButton.setEnabled(false);
}
});
panel.add(addDatastoreButton);
panel.add(Box.createHorizontalStrut(4));