private static JFrame getFrame(ApplicationWindow window) {
return (window != null) ? window.getFrame() : UiUtils.getActiveFrame();
}
private ExportSettingsRunner getExporter() {
OrderedSelection selection = propertySelector.getSelection();
ExportableProperty[] selectedProperties = new ExportableProperty[selection.size()];
int n = 0;
for (Object o : selection.items()) {
selectedProperties[n++] = (ExportableProperty) o;
}
return new ExportSettingsRunner(selectedProperties, destinationSelector.getSelectedEntities());
}