import eu.etaxonomy.taxeditor.store.CdmStore;
/**
- * <p>
* ExportToFileDestinationWizardPage class.
- * </p>
*
* @author n.hoffmann
* @created 15.06.2009
- * @version 1.0
*/
public class ExportToFileDestinationWizardPage extends WizardPage implements SelectionListener {
case DWCA_EXPORT:
dwcaExport = true;
break;
-
}
this.extension = extension;
this.setTitle(title);
if (outputModelExport || dwcaExport){
checkExportUnpublished = new Button(composite, SWT.CHECK);
checkExportUnpublished.setText("Export unpublished taxa");
- Label label = new Label(composite, SWT.NONE);
+ @SuppressWarnings("unused")
+ Label nope = new Label(composite, SWT.NONE);
Label separator = new Label(composite, SWT.HORIZONTAL | SWT.SEPARATOR);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
@Override
public void widgetDefaultSelected(SelectionEvent e) {
// TODO Auto-generated method stub
-
}
});
-
}
-
if (checkUseSelectedtaxonNode != null){
-
if (checkUseSelectedtaxonNode.getSelection()){
classificationSelectionCombo.setEnabled(false);
}
true, false));
}
-
// make the composite the wizard pages control
setControl(composite);
}
classificationSelectionCombo.setLayoutData(gridData);
for(Classification tree : classifications){
classificationSelectionCombo.add(tree.getName().getText(), classifications.indexOf(tree));
-
}
classificationSelectionCombo.select(classifications.indexOf(selectedClassification));
// TODO remember last selection
classificationSelectionCombo.addSelectionListener(this);
-
-
//return classificationSelection;
}
@Override
public void widgetSelected(SelectionEvent e) {
selectedClassification = classifications.get(classificationSelectionCombo.getSelectionIndex());
-
}
@Override
public void widgetDefaultSelected(SelectionEvent e) {
//not needed here
-
}
public UUID getSelectedClassificationUUID() {
-
return selectedClassification.getUuid();
}
}
public Set<UUID> getAllClassificationUuids(){
- Set<UUID> allClassificationUuids = new HashSet();
+ Set<UUID> allClassificationUuids = new HashSet<>();
for (Classification classification: this.classifications){
allClassificationUuids.add(classification.getUuid());
}
@Override
public boolean canFlipToNextPage() {
- return getFolderText() != null;
+ return getFolderText() != null;
}
-
}