Revision 0c676821
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/configurator/PublishSubTreeConfiguratorWizardPage.java | ||
---|---|---|
13 | 13 |
import org.eclipse.core.databinding.beans.PojoProperties; |
14 | 14 |
import org.eclipse.core.databinding.observable.value.IObservableValue; |
15 | 15 |
import org.eclipse.jface.databinding.swt.WidgetProperties; |
16 |
import org.eclipse.jface.wizard.IWizardContainer; |
|
16 | 17 |
import org.eclipse.jface.wizard.WizardPage; |
17 | 18 |
import org.eclipse.swt.SWT; |
18 | 19 |
import org.eclipse.swt.events.SelectionEvent; |
... | ... | |
102 | 103 |
|
103 | 104 |
btnIncludeSynonyms = new Button(control, SWT.CHECK); |
104 | 105 |
btnIncludeSynonyms.setText(Messages.SetPublishConfiguration_IncludeSynonyms); |
106 |
btnIncludeSynonyms.addSelectionListener(this); |
|
105 | 107 |
|
106 | 108 |
btnIncludeMisappliedNames = new Button(control, SWT.CHECK); |
107 | 109 |
btnIncludeMisappliedNames.setText(Messages.SetPublishConfiguration_IncludeMisappliedNames); |
... | ... | |
192 | 194 |
btnIncludeSharedTaxa.setEnabled(true); |
193 | 195 |
|
194 | 196 |
} |
197 |
if (!btnIncludeMisappliedNames.getSelection() && !btnIncludeAcceptedTaxa.getSelection() && !btnIncludeProParteSynonyms.getSelection() && !btnIncludeSynonyms.getSelection()){ |
|
198 |
btnIncludeHybrids.setEnabled(false); |
|
199 |
}else{ |
|
200 |
btnIncludeHybrids.setEnabled(true); |
|
201 |
|
|
202 |
} |
|
203 |
|
|
204 |
IWizardContainer container = this.getWizard().getContainer(); |
|
205 |
container.updateButtons(); |
|
195 | 206 |
} |
196 | 207 |
|
197 | 208 |
|
... | ... | |
204 | 215 |
// TODO Auto-generated method stub |
205 | 216 |
|
206 | 217 |
} |
218 |
|
|
219 |
@Override |
|
220 |
public boolean isPageComplete(){ |
|
221 |
|
|
222 |
return (btnIncludeAcceptedTaxa.getSelection() || btnIncludeSynonyms.getSelection() || btnIncludeMisappliedNames.getSelection() || btnIncludeProParteSynonyms.getSelection()); |
|
223 |
|
|
224 |
|
|
225 |
} |
|
207 | 226 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/configurator/SetPublishForSubtreeWizard.java | ||
---|---|---|
63 | 63 |
public void addPages() { |
64 | 64 |
page = new PublishSubTreeConfiguratorWizardPage(configurator); |
65 | 65 |
addPage(page); |
66 |
|
|
66 | 67 |
} |
67 | 68 |
|
68 | 69 |
|
Also available in: Unified diff
ref #8447: disable finish if nothing is selected and hybrids disabled if no taxa or syn selected