use of eu.esdihumboldt.hale.ui.util.io.KeyStrokeValidatingDirectoryFieldEditor in project hale by halestudio.
the class ArchiveProjectImportSelectLocationPage method createContent.
@Override
protected void createContent(Composite page) {
directoryField = new KeyStrokeValidatingDirectoryFieldEditor("Import location", "Select directory", page);
directoryField.setEmptyStringAllowed(false);
directoryField.setPropertyChangeListener(new IPropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent event) {
if (event.getProperty().equals(FieldEditor.IS_VALID)) {
updateState();
} else if (event.getProperty().equals(FieldEditor.VALUE)) {
updateState();
}
}
});
}
Aggregations