List<LibraryInfo> models = Collections.emptyList();
private Button overwrite;
+ private Button dependencies;
protected ModelExportPage(ExportPlan model) {
super("Export Model", "Define Export Location", null);
}
});
+ dependencies = new Button(container, SWT.CHECK);
+ dependencies.setText("&Export dependencies");
+ dependencies.setSelection(exportModel.includeDependencies);
+ GridDataFactory.fillDefaults().grab(true, false).span(3, 1).applyTo(dependencies);
+ dependencies.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ validatePage();
+ }
+ });
+
try {
initializeData();
} catch (DatabaseException e) {
}
exportModel.exportLocation = file;
exportModel.overwrite = overwrite.getSelection();
+ exportModel.includeDependencies = dependencies.getSelection();
setErrorMessage(null);
setMessage("Export selected model to " + exportModel.exportLocation + ".");