closeDialog();
}
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (evt.getPropertyName().equals(SaveLayersModel.MODE_PROP)) {
Mode mode = (Mode)evt.getNewValue();
switch(mode) {
case EDITING_DATA: setEnabled(true); break;
case UPLOADING_AND_SAVING: setEnabled(false); break;
}
}