Revision 994548e2
Added by Katja Luther about 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewer.java | ||
---|---|---|
128 | 128 |
public class DetailsViewer extends AbstractCdmDataViewer { |
129 | 129 |
|
130 | 130 |
private ISelection selection; |
131 |
|
|
131 |
|
|
132 | 132 |
public DetailsViewer(Composite parent, AbstractCdmViewPart viewPart) { |
133 | 133 |
super(parent, viewPart); |
134 | 134 |
} |
... | ... | |
372 | 372 |
TaxonBaseDetailSection taxonBaseDetailSection = formFactory.createTaxonBaseDetailSection(getConversationHolder(), parent, this, |
373 | 373 |
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
374 | 374 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
375 |
|
|
375 |
|
|
376 | 376 |
addPart(taxonBaseDetailSection); |
377 | 377 |
} |
378 | 378 |
} |
... | ... | |
380 | 380 |
.createNonViralNameDetailSection(getConversationHolder(), parent, this, true, |
381 | 381 |
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
382 | 382 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
383 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_REFERENCE))){
|
|
383 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_REFERENCE))){ |
|
384 | 384 |
NomenclaturalReferenceDetailSection referenceDetailSection = formFactory.createNomenclaturalReferenceDetailSection(getConversationHolder(), parent, this, |
385 | 385 |
ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
386 | 386 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
387 | 387 |
addPart(referenceDetailSection); |
388 |
|
|
388 |
|
|
389 | 389 |
} |
390 | 390 |
if ( !PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NOMENCLATURAL_STATUS))){ |
391 | 391 |
NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent, |
... | ... | |
393 | 393 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
394 | 394 |
addPart(nomenclaturalStatusSection); |
395 | 395 |
} |
396 |
if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL) ){ |
|
397 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_PROTOLOGUE))){
|
|
398 |
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
399 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
|
400 |
addPart(protologSection);
|
|
401 |
}
|
|
402 |
|
|
403 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_TYPE_DESIGNATION))){
|
|
404 |
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
405 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
|
406 |
addPart(typeDesignationSection);
|
|
407 |
}
|
|
408 |
|
|
409 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_RELATIONSHIP))){
|
|
410 |
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
|
|
411 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
|
|
412 |
addPart(nameRelationshipSection);
|
|
413 |
}
|
|
414 |
} |
|
396 |
|
|
397 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_PROTOLOGUE))){ |
|
398 |
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
399 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
400 |
addPart(protologSection); |
|
401 |
} |
|
402 |
|
|
403 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_TYPE_DESIGNATION))){ |
|
404 |
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
405 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
406 |
addPart(typeDesignationSection); |
|
407 |
} |
|
408 |
|
|
409 |
if (!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) || (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_SIMPLE_NAME_DETAILS_SECTION) && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_RELATIONSHIP))){ |
|
410 |
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
411 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
412 |
addPart(nameRelationshipSection); |
|
413 |
} |
|
414 |
|
|
415 | 415 |
|
416 | 416 |
addPart(parsingMessagesSection); |
417 | 417 |
|
... | ... | |
437 | 437 |
addPart(nonViralNameSection); |
438 | 438 |
addPart(nomenclaturalStatusSection); |
439 | 439 |
addPart(referenceDetailSection); |
440 |
//TODO RL |
|
441 |
if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.IS_RL)){ |
|
442 |
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
443 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
444 | 440 |
|
445 |
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
446 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
441 |
ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
442 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
443 |
|
|
444 |
TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
445 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
446 |
|
|
447 |
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
448 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
449 |
addPart(protologSection); |
|
450 |
addPart(typeDesignationSection); |
|
451 |
addPart(nameRelationshipSection); |
|
447 | 452 |
|
448 |
NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
449 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
450 |
addPart(protologSection); |
|
451 |
addPart(typeDesignationSection); |
|
452 |
addPart(nameRelationshipSection); |
|
453 |
} |
|
454 | 453 |
} |
455 | 454 |
|
456 | 455 |
private void createReferenceSections(RootElement parent) { |
... | ... | |
793 | 792 |
|
794 | 793 |
@Override |
795 | 794 |
public void update(CdmDataChangeMap arg0) { |
796 |
|
|
795 |
|
|
797 | 796 |
} |
798 | 797 |
|
799 | 798 |
} |
Also available in: Unified diff
merge