@Override
public Color getForeground(Object element) {
- DescriptionBase desc = null;
+ DescriptionBase<?> desc = null;
if (element instanceof DescriptionBase){
- desc = (DescriptionBase)element;
+ desc = (DescriptionBase<?>)element;
}else if (element instanceof DescriptionElementBase){
desc = ((DescriptionElementBase)element).getInDescription();
}else if (element instanceof FeatureNodeContainer){
}
return null;
}
-
}
private List<Classification> classifications;
private Classification selectedClassification;
- private Button checkExportUnpublished;
+ private Button checkIncludeUnpublished;
private Object[] checkedElements;
comboStatusOrder.addSelectionListener(this);
comboStatusOrder.select(0);
- checkExportUnpublished = new Button(composite, SWT.CHECK);
- checkExportUnpublished.setText(Messages.DistributionAggregationWizardPage_EXPORT_UNPUBLISHED);
+ checkIncludeUnpublished = new Button(composite, SWT.CHECK);
+ checkIncludeUnpublished.setText(Messages.DistributionAggregationWizardPage_EXPORT_UNPUBLISHED);
GridLayoutFactory.fillDefaults();
}
public boolean useUnpublishedData(){
- return checkExportUnpublished.getSelection();
+ return checkIncludeUnpublished.getSelection();
}
public Classification getSelectedClassification() {
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
-import org.eclipse.ui.forms.widgets.TableWrapData;
import eu.etaxonomy.cdm.api.application.CdmApplicationState;
import eu.etaxonomy.cdm.api.service.description.AggregationMode;
protected Button checkIncludeDefaultDescriptions;
protected Button checkIncludeLiteratureDescriptions;
-
+
private Label selectSubtreeLabel;
protected StructuredDescriptionAggregationConfigurationWizardPage(StructuredDescriptionAggregationConfiguration configurator, List<TaxonNodeDto> nodes) {
selectSubtreeLabel = new Label(control, SWT.NULL);
selectSubtreeLabel.setText(Messages.StructuredDescriptionAggregationWizardPage_SELECT_SUBTREE);
selectSubtreeLabel.setToolTipText(Messages.StructuredDescriptionAggregationWizardPage_TOOLTIP_SELECT_SUBTREE);
-
+
GridData gridData = new GridData();
gridData.horizontalIndent = 25;
gridData.verticalAlignment = SWT.TOP;
//scope (published taxa, literature + default descriptions)
Label scopeLabel = new Label(control, SWT.NULL);
scopeLabel.setText(Messages.StructuredDescriptionAggregationWizardPage_SELECT_DEFINE_SCOPE);
-
+
Composite scopeComposite = new Composite(control, SWT.NULL);
GridLayout gridDataScopeComposite = new GridLayout();
gridDataScopeComposite.numColumns = 1;
scopeComposite.setLayout(gridDataScopeComposite);
-
+
// GridLayoutFactory.fillDefaults();
-
+
checkIncludeUnpublishedTaxa = new Button(scopeComposite, SWT.CHECK);
checkIncludeUnpublishedTaxa.setText(Messages.StructuredDescriptionAggregationWizardPage_SELECT_UNPUBLISHED_TAXA);
checkIncludeUnpublishedTaxa.setSelection(configurator.getTaxonNodeFilter().isIncludeUnpublished());
checkIncludeDefaultDescriptions = new Button(scopeComposite, SWT.CHECK);
checkIncludeDefaultDescriptions.setText(Messages.StructuredDescriptionAggregationWizardPage_SELECT_DEFAULT_DESCRIPTION);
checkIncludeDefaultDescriptions.setEnabled(false);
-
+
checkIncludeLiteratureDescriptions = new Button(scopeComposite, SWT.CHECK);
checkIncludeLiteratureDescriptions.setText(Messages.StructuredDescriptionAggregationWizardPage_SELECT_LITERATURE_DESCRIPTION);