1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.taxeditor.ui.section.classification;
|
11
|
|
12
|
import java.util.HashMap;
|
13
|
|
14
|
import org.apache.commons.lang.StringUtils;
|
15
|
import org.eclipse.swt.widgets.Control;
|
16
|
import org.eclipse.swt.widgets.Text;
|
17
|
|
18
|
import eu.etaxonomy.cdm.common.CdmUtils;
|
19
|
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
|
20
|
import eu.etaxonomy.cdm.model.common.Language;
|
21
|
import eu.etaxonomy.cdm.model.common.LanguageString;
|
22
|
import eu.etaxonomy.cdm.model.metadata.CdmPreference;
|
23
|
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
|
24
|
import eu.etaxonomy.cdm.model.metadata.PublishEnum;
|
25
|
import eu.etaxonomy.cdm.model.name.TaxonName;
|
26
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
27
|
import eu.etaxonomy.cdm.model.taxon.Classification;
|
28
|
import eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode;
|
29
|
import eu.etaxonomy.cdm.model.taxon.Taxon;
|
30
|
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
|
31
|
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
|
32
|
import eu.etaxonomy.taxeditor.store.StoreUtil;
|
33
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
34
|
import eu.etaxonomy.taxeditor.ui.element.CheckboxElement;
|
35
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
36
|
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
|
37
|
import eu.etaxonomy.taxeditor.ui.element.MultilanguageTextElement;
|
38
|
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
|
39
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
40
|
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
|
41
|
import eu.etaxonomy.taxeditor.ui.selection.TaxonNodeSelectionElement;
|
42
|
|
43
|
/**
|
44
|
*
|
45
|
* @author n.hoffmann
|
46
|
* @created Sep 27, 2010
|
47
|
* @version 1.0
|
48
|
*/
|
49
|
public class TaxonNodeDetailElement extends AbstractCdmDetailElement<TaxonNode> {
|
50
|
|
51
|
private boolean createNew = false;
|
52
|
|
53
|
// private EntitySelectionElement<Classification> selection_classification;
|
54
|
|
55
|
private Classification classification;
|
56
|
|
57
|
private TaxonNodeSelectionElement selection_parentTaxonNode;
|
58
|
|
59
|
private TaxonNode parentTreeNode;
|
60
|
|
61
|
private EntitySelectionElement<Taxon> selection_reuseExistingTaxon;
|
62
|
private EntitySelectionElement<Reference> selection_SecRef;
|
63
|
private EntitySelectionElement<Reference> selection_Ref;
|
64
|
TextWithLabelElement textTaxonSec;
|
65
|
private TextWithLabelElement microReference;
|
66
|
|
67
|
private Taxon taxon;
|
68
|
|
69
|
private TextWithLabelElement textNewTaxonName;
|
70
|
|
71
|
private TaxonNodeAgentRelationCollectionSection selectionNodeAgentRelation;
|
72
|
|
73
|
// private CheckboxElement checkbox_openInEditor;
|
74
|
|
75
|
private CheckboxElement checkbox_unplaced;
|
76
|
|
77
|
private CheckboxElement checkbox_excluded;
|
78
|
private CheckboxElement checkbox_publish;
|
79
|
private CheckboxElement checkbox_placementDoubtful;
|
80
|
|
81
|
|
82
|
|
83
|
private MultilanguageTextElement multiLanguageTextExcludedNotes;
|
84
|
|
85
|
// private boolean openInEditor;
|
86
|
|
87
|
private boolean complete;
|
88
|
|
89
|
private boolean excluded = false;
|
90
|
private boolean unplaced = false;
|
91
|
private boolean placementDoubtful = false;
|
92
|
|
93
|
private EntitySelectionElement<TaxonName> selection_reuseExistingName;
|
94
|
|
95
|
public TaxonNodeDetailElement(CdmFormFactory formFactory,
|
96
|
ICdmFormElement formElement, boolean isCreateNew) {
|
97
|
super(formFactory, formElement);
|
98
|
createNew = isCreateNew;
|
99
|
}
|
100
|
|
101
|
|
102
|
|
103
|
/** {@inheritDoc} */
|
104
|
@Override
|
105
|
protected void createControls(ICdmFormElement formElement,
|
106
|
TaxonNode entity, int style) {
|
107
|
taxon = entity.getTaxon();
|
108
|
if (isCreateNew()){
|
109
|
// selection_classification = formFactory
|
110
|
// .createSelectionElement(Classification.class,//getConversationHolder(),
|
111
|
// formElement, "Classification",
|
112
|
// null, EntitySelectionElement.DELETABLE, style);
|
113
|
|
114
|
selection_parentTaxonNode = formFactory
|
115
|
.createTaxonNodeSelectionElement(getConversationHolder(), formElement, "Parent", parentTreeNode,
|
116
|
EntitySelectionElement.DELETABLE, style);
|
117
|
|
118
|
|
119
|
|
120
|
selection_Ref = formFactory
|
121
|
.createSelectionElement(Reference.class,
|
122
|
formElement, "Parent Child Relation Source", null,
|
123
|
EntitySelectionElement.DELETABLE, style);
|
124
|
|
125
|
|
126
|
microReference = formFactory.createTextWithLabelElement(formElement,"Detail", "", style);
|
127
|
microReference.setText(getEntity().getMicroReference());
|
128
|
|
129
|
selection_reuseExistingTaxon = formFactory
|
130
|
.createSelectionElement(Taxon.class,//getConversationHolder(),
|
131
|
formElement,
|
132
|
"Reuse existing taxon", null,
|
133
|
EntitySelectionElement.DELETABLE, style);
|
134
|
|
135
|
selection_reuseExistingName = formFactory
|
136
|
.createSelectionElement(TaxonName.class,//getConversationHolder(),
|
137
|
formElement,
|
138
|
"Reuse existing name", taxon.getName(),
|
139
|
EntitySelectionElement.DELETABLE, style);
|
140
|
selection_SecRef = formFactory
|
141
|
.createSelectionElement(Reference.class,//getConversationHolder(),
|
142
|
formElement, "Secundum Reference", taxon.getSec(),
|
143
|
EntitySelectionElement.DELETABLE, style);
|
144
|
|
145
|
if (isCreateNew()){
|
146
|
textNewTaxonName = formFactory.createTextWithLabelElement(formElement,"New Taxon", "", style);
|
147
|
textNewTaxonName.setFocus();
|
148
|
} else{
|
149
|
textNewTaxonName = formFactory.createTextWithLabelElement(formElement,"Taxon", "", style);
|
150
|
|
151
|
}
|
152
|
}else{
|
153
|
if (entity.getParent().getTaxon() == null){
|
154
|
TextWithLabelElement textParent = formFactory.createTextWithLabelElement(formElement,"Classification", entity.getClassification().getTitleCache(), style);
|
155
|
textParent.setEnabled(false);
|
156
|
}else{
|
157
|
TextWithLabelElement textParent = formFactory.createTextWithLabelElement(formElement,"Parent", entity.getParent().getTaxon().getTitleCache(), style);
|
158
|
textParent.setEnabled(false);
|
159
|
}
|
160
|
// TextWithLabelElement textTaxon = formFactory.createTextWithLabelElement(formElement,"Taxon", taxon.getTitleCache(), style);
|
161
|
// textTaxon.setEnabled(false);
|
162
|
selection_Ref = formFactory
|
163
|
.createSelectionElement(Reference.class,
|
164
|
formElement, "Parent Child Relation Source", null,
|
165
|
EntitySelectionElement.DELETABLE, style);
|
166
|
|
167
|
selection_reuseExistingTaxon = formFactory
|
168
|
.createSelectionElement(Taxon.class,//getConversationHolder(),
|
169
|
formElement,
|
170
|
"Taxon", taxon,
|
171
|
EntitySelectionElement.DELETABLE, style);
|
172
|
|
173
|
textTaxonSec = formFactory.createTextWithLabelElement(formElement,"Secundum Reference", "", style);
|
174
|
if (entity.getTaxon().getSec() != null){
|
175
|
textTaxonSec.setText(taxon.getSec().getTitleCache());
|
176
|
}
|
177
|
textTaxonSec.setEnabled(false);
|
178
|
|
179
|
|
180
|
|
181
|
}
|
182
|
|
183
|
|
184
|
if (!isCreateNew()){
|
185
|
if (entity.getReference() != null){
|
186
|
selection_Ref.setEntity(entity.getReference());
|
187
|
}
|
188
|
}
|
189
|
parentTreeNode = entity.getParent();
|
190
|
|
191
|
checkbox_placementDoubtful = formFactory.createCheckbox(formElement,
|
192
|
"Placement is doubtful", entity.isDoubtful(), style);
|
193
|
|
194
|
checkbox_publish = formFactory.createCheckbox(formElement,
|
195
|
"Taxon is published", entity.getTaxon().isPublish(), style);
|
196
|
|
197
|
checkbox_publish.setEnabled(isCreateNew());
|
198
|
|
199
|
if(isCreateNew()){
|
200
|
setParentTreeNode(entity.getParent());
|
201
|
|
202
|
String defaultPublish = PreferencesUtil.getStringValue(PreferencePredicate.DefaultBehaviourForPublishFlag.getKey());
|
203
|
if (defaultPublish != null && defaultPublish.equals(PublishEnum.Publish.getKey())){
|
204
|
checkbox_publish.setSelection(true);
|
205
|
} else if (defaultPublish != null && defaultPublish.equals(PublishEnum.NotPublish.getKey())){
|
206
|
checkbox_publish.setSelection(false);
|
207
|
}else{
|
208
|
if(this.getParentTreeNode() != null && this.getParentTreeNode().isInstanceOf(TaxonNode.class) && ((TaxonNode)this.getParentTreeNode()).getTaxon() != null){
|
209
|
checkbox_publish.setSelection(((TaxonNode)this.getParentTreeNode()).getTaxon().isPublish());
|
210
|
}else{
|
211
|
checkbox_publish.setSelection(true);
|
212
|
}
|
213
|
}
|
214
|
|
215
|
} else{
|
216
|
setTreeNode(entity);
|
217
|
|
218
|
complete = true;
|
219
|
}
|
220
|
|
221
|
checkbox_unplaced = formFactory.createCheckbox(formElement,
|
222
|
"Taxon is unplaced", entity.isUnplaced(), style);
|
223
|
|
224
|
if (isCreateNew()){
|
225
|
preFillTaxonName();
|
226
|
}
|
227
|
|
228
|
if (entity instanceof TaxonNode) {
|
229
|
checkbox_excluded = formFactory.createCheckbox(formElement,
|
230
|
"Taxon is excluded", entity.isExcluded(), style);
|
231
|
multiLanguageTextExcludedNotes = formFactory.createMultiLanguageTextElement(formElement, "Excluded Notes", entity.getExcludedNote(), 50, style);
|
232
|
multiLanguageTextExcludedNotes.setEnabled(entity.isExcluded());
|
233
|
}else{
|
234
|
checkbox_excluded = formFactory.createCheckbox(formElement,
|
235
|
"Taxon is excluded", false, style);
|
236
|
multiLanguageTextExcludedNotes = formFactory.createMultiLanguageTextElement(formElement, "Excluded Notes", new HashMap<Language, LanguageString>(), 50, style);
|
237
|
multiLanguageTextExcludedNotes.setEnabled(false);
|
238
|
}
|
239
|
if (!isCreateNew()){
|
240
|
selectionNodeAgentRelation = formFactory.createTaxonNodeAgentRelationCollectionSection(formElement, getConversationHolder(), StoreUtil.getSectionStyle(TaxonNodeAgentRelationCollectionSection.class, entity.getClass().getCanonicalName()));
|
241
|
selectionNodeAgentRelation.setEntity(entity);
|
242
|
selectionNodeAgentRelation.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
|
243
|
}
|
244
|
|
245
|
}
|
246
|
|
247
|
private void preFillTaxonName() {
|
248
|
if(getEntity() instanceof TaxonNode ){
|
249
|
TaxonNode node = parentTreeNode;
|
250
|
if(node.getTaxon()!=null){
|
251
|
Taxon taxon = HibernateProxyHelper.deproxy(node.getTaxon(), Taxon.class);
|
252
|
if(taxon.getName()!=null){
|
253
|
TaxonName name = HibernateProxyHelper.deproxy(node.getTaxon().getName());
|
254
|
if (!isCreateNew()){
|
255
|
textNewTaxonName.setText(name.getNameCache());
|
256
|
} else if( ! name.isSupraGeneric() && name.getRank() != null){
|
257
|
String taxonName = "";
|
258
|
if(name.isGenus() || name.isInfraGeneric()|| name.isSpeciesAggregate() ){
|
259
|
taxonName = name.getGenusOrUninomial();
|
260
|
}
|
261
|
else if(name.isSpecies() || name.isInfraSpecific() ){
|
262
|
taxonName = CdmUtils.concat(" ", name.getGenusOrUninomial(),name.getSpecificEpithet());
|
263
|
}
|
264
|
if (StringUtils.isNotBlank(taxonName)){
|
265
|
textNewTaxonName.setText(taxonName + " ");
|
266
|
if(textNewTaxonName.getMainControl() instanceof Text){
|
267
|
Text text = (Text)textNewTaxonName.getMainControl();
|
268
|
text.setSelection(textNewTaxonName.getText().length());
|
269
|
}
|
270
|
}
|
271
|
}
|
272
|
}
|
273
|
}
|
274
|
}
|
275
|
}
|
276
|
|
277
|
/** {@inheritDoc} */
|
278
|
@Override
|
279
|
public void handleEvent(Object eventSource) {
|
280
|
if (eventSource == selection_parentTaxonNode) {
|
281
|
setParentTreeNode(selection_parentTaxonNode.getEntity());
|
282
|
} else if (eventSource == selection_reuseExistingTaxon) {
|
283
|
if (selection_reuseExistingTaxon.getEntity() != null){
|
284
|
setTaxon(selection_reuseExistingTaxon.getEntity());
|
285
|
if (getTaxon().getSec()!= null){
|
286
|
if (isCreateNew()){
|
287
|
selection_SecRef.setEntity(getTaxon().getSec());
|
288
|
}else{
|
289
|
textTaxonSec.setText((getTaxon().getSec().getTitleCache()));
|
290
|
}
|
291
|
}else{
|
292
|
if (isCreateNew()){
|
293
|
selection_SecRef.setEntity(null);
|
294
|
}else{
|
295
|
textTaxonSec.setText("");
|
296
|
}
|
297
|
}
|
298
|
checkbox_publish.setSelected(getTaxon().isPublish());
|
299
|
}
|
300
|
boolean enabled = selection_reuseExistingTaxon.getEntity() == null;
|
301
|
if (selection_reuseExistingName != null){
|
302
|
selection_reuseExistingName.setEnabled(enabled);
|
303
|
}
|
304
|
textNewTaxonName.setEnabled(enabled);
|
305
|
complete = true;
|
306
|
} else if (eventSource == selection_reuseExistingName) {
|
307
|
boolean enabled = selection_reuseExistingName.getEntity() == null;
|
308
|
setTaxon(HibernateProxyHelper.deproxy(selection_reuseExistingName.getEntity()));
|
309
|
if (selection_reuseExistingTaxon != null){
|
310
|
selection_reuseExistingTaxon.setEnabled(enabled);
|
311
|
}
|
312
|
textNewTaxonName.setEnabled(enabled);
|
313
|
complete = !textNewTaxonName.getText().isEmpty();
|
314
|
}
|
315
|
|
316
|
if (eventSource == selection_Ref) {
|
317
|
getEntity().setReference(selection_Ref.getEntity());
|
318
|
}else if (eventSource == selection_SecRef) {
|
319
|
taxon.setSec(selection_SecRef.getEntity());
|
320
|
}else if (eventSource == microReference) {
|
321
|
getEntity().setMicroReference(microReference.getText());
|
322
|
} else if (eventSource == checkbox_publish) {
|
323
|
taxon.setPublish(checkbox_publish.getSelection());
|
324
|
}
|
325
|
|
326
|
if (eventSource == checkbox_excluded) {
|
327
|
excluded = checkbox_excluded.getSelection();
|
328
|
|
329
|
getEntity().setExcluded(excluded);
|
330
|
|
331
|
multiLanguageTextExcludedNotes.setEnabled(excluded);
|
332
|
}
|
333
|
if (eventSource == checkbox_unplaced) {
|
334
|
unplaced = checkbox_unplaced.getSelection();
|
335
|
getEntity().setUnplaced(unplaced);
|
336
|
|
337
|
}
|
338
|
|
339
|
if (eventSource == checkbox_placementDoubtful) {
|
340
|
placementDoubtful = checkbox_placementDoubtful.getSelection();
|
341
|
getEntity().setDoubtful(placementDoubtful);
|
342
|
|
343
|
}
|
344
|
if (eventSource == textNewTaxonName) {
|
345
|
boolean enabled = CdmUtils.isBlank(textNewTaxonName.getText());
|
346
|
if (selection_reuseExistingTaxon != null){
|
347
|
selection_reuseExistingTaxon.setEnabled(enabled);
|
348
|
}
|
349
|
selection_reuseExistingName.setEnabled(enabled);
|
350
|
|
351
|
complete = CdmUtils.isNotBlank(textNewTaxonName.getText());
|
352
|
}
|
353
|
|
354
|
if (eventSource == selectionNodeAgentRelation){
|
355
|
boolean allComplete = true;
|
356
|
for (ICdmFormElement element : selectionNodeAgentRelation.getElements()){
|
357
|
allComplete &=((TaxonNodeAgentRelationCollectionElement)element).isComplete();
|
358
|
}
|
359
|
complete = !isCreateNew() && allComplete;
|
360
|
}
|
361
|
}
|
362
|
|
363
|
public Classification getClassification() {
|
364
|
return classification;
|
365
|
}
|
366
|
|
367
|
|
368
|
|
369
|
public ITaxonTreeNode getParentTreeNode() {
|
370
|
return parentTreeNode;
|
371
|
}
|
372
|
|
373
|
private void setClassification(Classification classification) {
|
374
|
this.classification = classification;
|
375
|
//setParentTreeNode(classification);
|
376
|
}
|
377
|
|
378
|
private void setParentTreeNode(TaxonNode parentTreeNode) {
|
379
|
this.parentTreeNode = parentTreeNode;
|
380
|
|
381
|
if (parentTreeNode.getTaxon() == null) {
|
382
|
classification = parentTreeNode.getClassification();
|
383
|
// if (selection_classification != null){
|
384
|
// selection_classification.setEntity(classification);
|
385
|
// }
|
386
|
selection_parentTaxonNode.setEntity(classification.getRootNode());
|
387
|
selection_parentTaxonNode.setClassification(classification);
|
388
|
selection_SecRef.setEntity(classification.getReference());
|
389
|
} else {
|
390
|
classification = HibernateProxyHelper
|
391
|
.deproxy(parentTreeNode.getClassification());
|
392
|
// if (selection_classification != null){
|
393
|
// selection_classification.setEntity(classification);
|
394
|
// }
|
395
|
selection_parentTaxonNode.setEntity(HibernateProxyHelper
|
396
|
.deproxy(parentTreeNode));
|
397
|
selection_parentTaxonNode.setClassification(classification);
|
398
|
selection_SecRef.setEntity(parentTreeNode.getTaxon().getSec());
|
399
|
|
400
|
}
|
401
|
}
|
402
|
|
403
|
private void setTreeNode(TaxonNode treeNode) {
|
404
|
classification = HibernateProxyHelper
|
405
|
.deproxy(treeNode.getClassification());
|
406
|
if (isCreateNew()){
|
407
|
//selection_classification.setEntity(classification);
|
408
|
selection_parentTaxonNode.setEntity(treeNode.getParent());
|
409
|
selection_parentTaxonNode.setClassification(treeNode.getParent().getClassification());
|
410
|
selection_SecRef.setEntity(treeNode.getTaxon().getSec());
|
411
|
}
|
412
|
}
|
413
|
|
414
|
private void setTaxon(Taxon taxon) {
|
415
|
this.taxon = taxon;
|
416
|
getEntity().setTaxon(taxon);
|
417
|
this.set_publish(taxon.isPublish());
|
418
|
if (isCreateNew()){
|
419
|
textNewTaxonName.setText(taxon.getName().getTitleCache());
|
420
|
if (taxon.getSec() != null){
|
421
|
selection_SecRef.setEntity(taxon.getSec());
|
422
|
}
|
423
|
}else{
|
424
|
if (taxon.getSec() != null) {
|
425
|
this.textTaxonSec.setText(taxon.getSec().getTitleCache());
|
426
|
}
|
427
|
}
|
428
|
|
429
|
|
430
|
}
|
431
|
|
432
|
private void setTaxon(TaxonName taxonName) {
|
433
|
Reference secundum = null;
|
434
|
if (getParentTreeNode() != null) {
|
435
|
if (this.selection_SecRef.getEntity() != null){
|
436
|
secundum = this.selection_SecRef.getEntity();
|
437
|
}
|
438
|
}
|
439
|
if (taxonName != null){
|
440
|
taxon = Taxon.NewInstance(taxonName, secundum);
|
441
|
if (textNewTaxonName.getText() == null || !taxonName.getTitleCache().trim().equals(textNewTaxonName.getText().trim())){
|
442
|
textNewTaxonName.setText(taxonName.getTitleCache());
|
443
|
}
|
444
|
getEntity().setTaxon(taxon);
|
445
|
// if (!taxonName.getTitleCache().trim().equals(textNewTaxonName.getText().trim())){
|
446
|
// textNewTaxonName.setText(taxonName.getTitleCache());
|
447
|
// }
|
448
|
} else {
|
449
|
textNewTaxonName.setText(null);
|
450
|
}
|
451
|
}
|
452
|
|
453
|
// private void setOpenInEditor(boolean openInEditor) {
|
454
|
// this.openInEditor = openInEditor;
|
455
|
// }
|
456
|
|
457
|
public String getTaxonName() {
|
458
|
return textNewTaxonName.getText();
|
459
|
}
|
460
|
public Taxon getTaxon() {
|
461
|
return taxon;
|
462
|
}
|
463
|
|
464
|
public Reference getReference(){
|
465
|
return selection_SecRef.getSelection();
|
466
|
}
|
467
|
|
468
|
public Control getMainControl(){
|
469
|
return textNewTaxonName.getMainControl();
|
470
|
}
|
471
|
|
472
|
public boolean isComplete() {
|
473
|
boolean allComplete = true;
|
474
|
if (!isCreateNew()){
|
475
|
for (ICdmFormElement element : selectionNodeAgentRelation.getElements()){
|
476
|
allComplete &=((TaxonNodeAgentRelationCollectionElement)element).isComplete();
|
477
|
}
|
478
|
complete = allComplete;
|
479
|
}
|
480
|
return complete;
|
481
|
}
|
482
|
|
483
|
public boolean isCreateNew() {
|
484
|
return createNew;
|
485
|
}
|
486
|
|
487
|
|
488
|
|
489
|
public boolean is_publish() {
|
490
|
boolean isPublishPreference = true;
|
491
|
CdmPreference defaultPublish = PreferencesUtil.getPreferenceFromDB(PreferencePredicate.DefaultBehaviourForPublishFlag);
|
492
|
if (defaultPublish != null && defaultPublish.getValue().equals(PublishEnum.NotPublish.getKey())){
|
493
|
isPublishPreference = false;
|
494
|
}
|
495
|
return checkbox_publish!=null?checkbox_publish.getSelection():isPublishPreference;
|
496
|
}
|
497
|
|
498
|
public void set_publish(boolean publish) {
|
499
|
this.checkbox_publish.setSelection(publish);
|
500
|
}
|
501
|
|
502
|
|
503
|
}
|