Revision 1d76231c
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/wizard/Test.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.taxeditor.databaseAdmin.wizard; |
10 | 10 |
|
11 |
import java.util.List; |
|
12 |
|
|
13 | 11 |
import org.eclipse.jface.wizard.WizardPage; |
14 | 12 |
import org.eclipse.swt.SWT; |
15 | 13 |
import org.eclipse.swt.events.SelectionAdapter; |
16 | 14 |
import org.eclipse.swt.events.SelectionEvent; |
17 | 15 |
import org.eclipse.swt.layout.FillLayout; |
18 |
import org.eclipse.swt.layout.GridData; |
|
19 | 16 |
import org.eclipse.swt.layout.GridLayout; |
20 | 17 |
import org.eclipse.swt.widgets.Button; |
21 | 18 |
import org.eclipse.swt.widgets.Composite; |
... | ... | |
25 | 22 |
import eu.etaxonomy.cdm.io.operation.config.CacheUpdaterConfigurator; |
26 | 23 |
import eu.etaxonomy.cdm.io.operation.config.SortIndexUpdaterConfigurator; |
27 | 24 |
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; |
28 |
import eu.etaxonomy.cdm.model.common.IdentifiableEntity; |
|
29 | 25 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
30 | 26 |
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase; |
31 | 27 |
import eu.etaxonomy.cdm.model.reference.Reference; |
... | ... | |
46 | 42 |
boolean updateTaxonBase = false; |
47 | 43 |
boolean updateName = false; |
48 | 44 |
boolean updateSpecimen = false; |
49 |
|
|
45 |
|
|
50 | 46 |
public Test(String pageName, CacheUpdaterConfigurator configTitleCache, SortIndexUpdaterConfigurator sortIndexConfig) { |
51 | 47 |
super(pageName); |
52 | 48 |
config = configTitleCache; |
... | ... | |
73 | 69 |
tbtmSortIndex.setControl(composite); |
74 | 70 |
composite.setLayout(new GridLayout(1, true)); |
75 | 71 |
|
76 |
|
|
72 |
|
|
77 | 73 |
Button checkBoxTaxonNode = new Button(composite, SWT.CHECK); |
78 | 74 |
checkBoxTaxonNode.setSelection(sortIndexConfig.isDoTaxonNode()); |
79 | 75 |
checkBoxTaxonNode.setText(Messages.DatabaseRepairPage_updateTaxonNodes); |
... | ... | |
117 | 113 |
Composite composite_1 = new Composite(tabFolder, SWT.NONE); |
118 | 114 |
tbtmNewItem.setControl(composite_1); |
119 | 115 |
composite_1.setLayout(new GridLayout(1, false)); |
120 |
|
|
116 |
|
|
121 | 117 |
Button checkBoxTeamOrPerson = new Button(composite_1, SWT.CHECK); |
122 | 118 |
checkBoxTeamOrPerson.setSelection(config.getClassList().contains(TeamOrPersonBase.class)); |
123 | 119 |
checkBoxTeamOrPerson.setText(Messages.DatabaseRepairPage_TeamOrPerson); |
... | ... | |
128 | 124 |
public void widgetSelected(SelectionEvent e) { |
129 | 125 |
Button b = (Button) e.widget; |
130 | 126 |
updateAgentBase = b.getSelection(); |
131 |
|
|
127 |
|
|
132 | 128 |
} |
133 | 129 |
}); |
134 |
|
|
130 |
|
|
135 | 131 |
Button checkBoxReference = new Button(composite_1, SWT.CHECK); |
136 | 132 |
checkBoxReference.setSelection(config.getClassList().contains(Reference.class)); |
137 | 133 |
checkBoxReference.setText(Messages.DatabaseRepairPage_Reference); |
... | ... | |
144 | 140 |
updateReference= b.getSelection(); |
145 | 141 |
} |
146 | 142 |
}); |
147 |
|
|
143 |
|
|
148 | 144 |
Button checkBoxTaxonName = new Button(composite_1, SWT.CHECK); |
149 | 145 |
checkBoxTaxonName.setSelection(config.getClassList().contains(TaxonName.class)); |
150 | 146 |
checkBoxTaxonName.setText(Messages.DatabaseRepairPage_updateTaxonName); |
... | ... | |
155 | 151 |
public void widgetSelected(SelectionEvent e) { |
156 | 152 |
Button b = (Button) e.widget; |
157 | 153 |
updateName = b.getSelection(); |
158 |
|
|
154 |
|
|
159 | 155 |
} |
160 | 156 |
}); |
161 | 157 |
|
... | ... | |
169 | 165 |
public void widgetSelected(SelectionEvent e) { |
170 | 166 |
Button b = (Button) e.widget; |
171 | 167 |
updateTaxonBase = b.getSelection(); |
172 |
|
|
168 |
|
|
173 | 169 |
} |
174 | 170 |
}); |
175 | 171 |
|
176 |
|
|
172 |
|
|
177 | 173 |
Button checkBoxSpecimen = new Button(composite_1, SWT.CHECK); |
178 | 174 |
checkBoxSpecimen.setSelection(config.getClassList().contains(SpecimenOrObservationBase.class)); |
179 | 175 |
checkBoxSpecimen.setText(Messages.DatabaseRepairPage_Specimen); |
... | ... | |
184 | 180 |
public void widgetSelected(SelectionEvent e) { |
185 | 181 |
Button b = (Button) e.widget; |
186 | 182 |
updateSpecimen = b.getSelection(); |
187 |
|
|
183 |
|
|
188 | 184 |
} |
189 | 185 |
}); |
190 |
|
|
186 |
|
|
191 | 187 |
tabFolder.pack(); |
192 | 188 |
} |
193 | 189 |
} |
Also available in: Unified diff
ref #7063: better handling of preferences for distribution editor and other places