use of eu.esdihumboldt.hale.ui.util.io.SaveFileFieldEditor in project hale by halestudio.
the class FileTarget method createControls.
@Override
public void createControls(Composite parent) {
getPage().setDescription("Please select a destination file for the export");
parent.setLayout(new GridLayout(3, false));
targetFile = new SaveFileFieldEditor("targetFile", "Target file:", true, FileFieldEditor.VALIDATE_ON_KEY_STROKE, parent);
targetFile.setEmptyStringAllowed(false);
targetFile.setAllowUri(true);
targetFile.setPage(getPage());
targetFile.setPropertyChangeListener(new IPropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent event) {
if (event.getProperty().equals(FieldEditor.IS_VALID)) {
updateState();
} else if (event.getProperty().equals(FieldEditor.VALUE)) {
updateContentType();
}
}
});
updateState();
}
Aggregations