formatcombo.setInput(ExportFormat.values());
formatcombo.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
IPath path = Path.fromOSString(destinationcombo.getText());
path = path.removeFileExtension();
final ExportFormat format = getExportFormat();
if (!format.isFolderOutput()) {
path = path.addFileExtension(format.getFileExtension());
}
destinationcombo.setText(path.toOSString());
}
});
GridData gd = new GridData(GridData.FILL_HORIZONTAL);