Project

General

Profile

Revision 2fe99213

ID2fe99213bd2323607ec7e3181531fb37d6da97c5
Parent 1051997a
Child b0b118a7

Added by Katja Luther almost 2 years ago

add specimen, person and team cache updater to admin menu

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/wizard/Test.java
23 23

  
24 24
import eu.etaxonomy.cdm.io.common.CacheUpdaterConfigurator;
25 25
import eu.etaxonomy.cdm.io.common.SortIndexUpdaterConfigurator;
26
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
26 27
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
27 28
import eu.etaxonomy.cdm.model.name.TaxonName;
29
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
28 30
import eu.etaxonomy.cdm.model.reference.Reference;
29 31
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
30 32
import eu.etaxonomy.taxeditor.l10n.Messages;
......
146 148
                    classList.add(Reference.class);
147 149
                }
148 150
            });
151
            
152
            Button checkBoxSpecimen = new Button(composite_1, SWT.CHECK);
153
            checkBoxSpecimen.setSelection(config.getClassList().contains(SpecimenOrObservationBase.class));
154
            checkBoxSpecimen.setText(Messages.DatabaseRepairPage_Specimen);
155
            checkBoxSpecimen
156
            .setToolTipText(Messages.DatabaseRepairPage_toolTip_specimen);
157
            checkBoxSpecimen.addSelectionListener(new SelectionAdapter() {
158
                @Override
159
                public void widgetSelected(SelectionEvent e) {
160
                    List<Class<? extends IdentifiableEntity>> classList  = config.getClassList();
161
                    classList.add(SpecimenOrObservationBase.class);
162
                }
163
            });
164
            
165
            Button checkBoxTeamOrPerson = new Button(composite_1, SWT.CHECK);
166
            checkBoxTeamOrPerson.setSelection(config.getClassList().contains(TeamOrPersonBase.class));
167
            checkBoxTeamOrPerson.setText(Messages.DatabaseRepairPage_TeamOrPerson);
168
            checkBoxTeamOrPerson
169
            .setToolTipText(Messages.DatabaseRepairPage_toolTip_teamOrPerson);
170
            checkBoxTeamOrPerson.addSelectionListener(new SelectionAdapter() {
171
                @Override
172
                public void widgetSelected(SelectionEvent e) {
173
                    List<Class<? extends IdentifiableEntity>> classList  = config.getClassList();
174
                    classList.add(TeamOrPersonBase.class);
175
                }
176
            });
149 177

  
150 178

  
151 179
            tabFolder.pack();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)