9 |
9 |
import org.eclipse.swt.events.DisposeListener;
|
10 |
10 |
import org.eclipse.swt.layout.RowLayout;
|
11 |
11 |
import org.eclipse.swt.widgets.Button;
|
12 |
|
import org.eclipse.swt.widgets.Combo;
|
13 |
12 |
import org.eclipse.swt.widgets.Composite;
|
14 |
13 |
import org.eclipse.swt.widgets.Display;
|
15 |
14 |
import org.eclipse.ui.forms.widgets.FormToolkit;
|
16 |
15 |
|
17 |
16 |
import eu.etaxonomy.cdm.api.service.config.NameDeletionConfigurator;
|
18 |
|
import eu.etaxonomy.cdm.api.service.config.TaxonDeletionConfigurator;
|
19 |
17 |
/**
|
20 |
18 |
* @author kluther
|
21 |
19 |
* @date Nov 2, 2015
|
... | ... | |
32 |
30 |
private final Button btnIgnoreHasBasionym;
|
33 |
31 |
private final Button btnIgnoreHasReplacedSynonym;
|
34 |
32 |
private final Button btnRemoveAllTypeDesignations;
|
35 |
|
|
|
33 |
private final Button btnIgnoreIsOriginalSpelling;
|
|
34 |
|
36 |
35 |
/*
|
37 |
36 |
* private boolean removeAllNameRelationships = false;
|
38 |
|
|
|
37 |
|
39 |
38 |
private boolean ignoreIsBasionymFor = false;
|
40 |
|
|
|
39 |
|
41 |
40 |
private boolean ignoreIsReplacedSynonymFor = false;
|
42 |
41 |
|
43 |
42 |
private boolean ignoreHasBasionym = true;
|
44 |
|
|
|
43 |
|
45 |
44 |
private boolean ignoreHasReplacedSynonym = true;
|
46 |
|
|
|
45 |
|
47 |
46 |
private boolean removeAllNameTypeDesignations = true;
|
48 |
47 |
*/
|
49 |
|
|
|
48 |
|
50 |
49 |
|
51 |
50 |
/**
|
52 |
51 |
* Create the composite.
|
... | ... | |
69 |
68 |
btnRemoveAllNameRelationships = new Button(this, SWT.CHECK);
|
70 |
69 |
btnRemoveAllNameRelationships.setText("Remove all Name Relationships");
|
71 |
70 |
btnRemoveAllNameRelationships.setSelection(true);
|
72 |
|
|
|
71 |
|
73 |
72 |
btnIgnoreIsBasionym = new Button(this, SWT.CHECK);
|
74 |
73 |
btnIgnoreIsBasionym.setText("Ignore is Basionym");
|
75 |
74 |
btnIgnoreIsBasionym.setSelection(true);
|
76 |
|
|
|
75 |
|
|
76 |
btnIgnoreIsOriginalSpelling= new Button(this, SWT.CHECK);
|
|
77 |
btnIgnoreIsOriginalSpelling.setText("Ignore is Original Spelling");
|
|
78 |
btnIgnoreIsOriginalSpelling.setSelection(false);
|
|
79 |
|
77 |
80 |
btnIgnoreIsReplacedSynonymFor = new Button(this, SWT.CHECK);
|
78 |
81 |
btnIgnoreIsReplacedSynonymFor.setText("Ignore is Replaced Synonym");
|
79 |
82 |
btnIgnoreIsReplacedSynonymFor.setSelection(true);
|
80 |
|
|
|
83 |
|
81 |
84 |
btnIgnoreHasBasionym = new Button(this, SWT.CHECK);
|
82 |
85 |
btnIgnoreHasBasionym.setText("Ignore has Basionym");
|
83 |
86 |
btnIgnoreHasBasionym.setSelection(true);
|
84 |
|
|
|
87 |
|
85 |
88 |
btnIgnoreHasReplacedSynonym = new Button(this, SWT.CHECK);
|
86 |
89 |
btnIgnoreHasReplacedSynonym.setText("Ignore has Replaced Synonym");
|
87 |
90 |
btnIgnoreHasReplacedSynonym.setSelection(true);
|
88 |
|
|
|
91 |
|
89 |
92 |
btnRemoveAllTypeDesignations = new Button(this, SWT.CHECK);
|
90 |
93 |
btnRemoveAllTypeDesignations.setText("Remove all Type Designations");
|
91 |
94 |
btnRemoveAllTypeDesignations.setSelection(true);
|
92 |
|
|
|
95 |
|
93 |
96 |
m_bindingContext = initDataBindings();
|
94 |
97 |
|
95 |
98 |
}
|
... | ... | |
100 |
103 |
IObservableValue observeSelectionBtnRemoveAllNameRelationshipsWidget = WidgetProperties.selection().observe(btnRemoveAllNameRelationships);
|
101 |
104 |
IObservableValue removeAllNameRelationshipsConfiguratorObserveValue = PojoProperties.value("removeAllNameRelationships").observe(configurator);
|
102 |
105 |
bindingContext.bindValue(observeSelectionBtnRemoveAllNameRelationshipsWidget, removeAllNameRelationshipsConfiguratorObserveValue, null, null);
|
103 |
|
|
|
106 |
|
104 |
107 |
IObservableValue observeSelectionBtnbtnIgnoreIsBasionymObserveWidget = WidgetProperties.selection().observe(btnIgnoreIsBasionym);
|
105 |
108 |
IObservableValue ignoreIsBasionymConfiguratorObserveValue = PojoProperties.value("ignoreIsBasionymFor").observe(configurator);
|
106 |
109 |
bindingContext.bindValue(observeSelectionBtnbtnIgnoreIsBasionymObserveWidget, ignoreIsBasionymConfiguratorObserveValue, null, null);
|
107 |
|
|
|
110 |
|
|
111 |
IObservableValue observeSelectionBtnbtnIgnoreIsOrigialSpellingObserveWidget = WidgetProperties.selection().observe(btnIgnoreIsOriginalSpelling);
|
|
112 |
IObservableValue ignoreIsOriginalSpellingConfiguratorObserveValue = PojoProperties.value("ignoreIsOriginalSpellingFor").observe(configurator);
|
|
113 |
bindingContext.bindValue(observeSelectionBtnbtnIgnoreIsOrigialSpellingObserveWidget, ignoreIsOriginalSpellingConfiguratorObserveValue, null, null);
|
|
114 |
|
108 |
115 |
IObservableValue observeSelectionBtnIgnoreIsReplacedSynonymForWidget = WidgetProperties.selection().observe(btnIgnoreIsReplacedSynonymFor);
|
109 |
116 |
IObservableValue ignoreIsReplacedSynonymForConfiguratorObserveValue = PojoProperties.value("ignoreIsReplacedSynonymFor").observe(configurator);
|
110 |
117 |
bindingContext.bindValue(observeSelectionBtnIgnoreIsReplacedSynonymForWidget, ignoreIsReplacedSynonymForConfiguratorObserveValue, null, null);
|
111 |
|
|
|
118 |
|
112 |
119 |
IObservableValue observeSelectionBtnIgnoreHasBasionymWidget = WidgetProperties.selection().observe(btnIgnoreHasBasionym);
|
113 |
120 |
IObservableValue ignoreHasBasionymConfiguratorObserveValue = PojoProperties.value("ignoreHasBasionym").observe(configurator);
|
114 |
121 |
bindingContext.bindValue(observeSelectionBtnIgnoreHasBasionymWidget, ignoreHasBasionymConfiguratorObserveValue, null, null);
|
115 |
|
|
|
122 |
|
116 |
123 |
IObservableValue observeSelectionBtnIgnoreHasReplacedSynonymWidget = WidgetProperties.selection().observe(btnIgnoreHasReplacedSynonym);
|
117 |
124 |
IObservableValue ignoreHasReplacedSynonymConfiguratorObserveValue = PojoProperties.value("ignoreHasReplacedSynonym").observe(configurator);
|
118 |
125 |
bindingContext.bindValue(observeSelectionBtnIgnoreHasReplacedSynonymWidget, ignoreHasReplacedSynonymConfiguratorObserveValue, null, null);
|
ref #9531: adapt wizards for name delete