Project

General

Profile

« Previous | Next » 

Revision 5b087075

Added by Patrick Plitzner almost 11 years ago

  • completely removed EntityDetailType enum and all its uses

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewer.java
48 48
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
49 49
import eu.etaxonomy.taxeditor.store.CdmStore;
50 50
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
51
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.EntityDetailType;
52 51
import eu.etaxonomy.taxeditor.ui.element.RootElement;
53 52
import eu.etaxonomy.taxeditor.ui.section.agent.PersonDetailSection;
54 53
import eu.etaxonomy.taxeditor.ui.section.agent.TeamDetailSection;
......
262 261
        destroySections();
263 262

  
264 263
        GroupDetailSection groupDetailSection = formFactory.createGroupDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE| ExpandableComposite.EXPANDED);
265
        MemberDetailSection memberDetailSection = (MemberDetailSection) formFactory.createEntityDetailSection(EntityDetailType.MEMBER, getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
266
        GrantedAuthorityDetailSection grantedAuthorityDetailSection = (GrantedAuthorityDetailSection) formFactory.createEntityDetailSection(EntityDetailType.GRANTED_AUTHORITY, getConversationHolder(), parent,ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
264
        MemberDetailSection memberDetailSection = formFactory.createMemberDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
265
        GrantedAuthorityDetailSection grantedAuthorityDetailSection = formFactory.createGrantedAuthorityDetailSection(getConversationHolder(), parent,ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
267 266

  
268 267
        addPart(groupDetailSection);
269 268
        addPart(memberDetailSection);
......
317 316

  
318 317
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
319 318

  
320
        NomenclaturalStatusSection nomenclaturalStatusSection = (NomenclaturalStatusSection) formFactory.createEntityDetailSection(EntityDetailType.NOMENCLATURALSTATUS, getConversationHolder(), parent,ExpandableComposite.TWISTIE);
319
        NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,ExpandableComposite.TWISTIE);
321 320

  
322 321
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
323 322

  
324
        ProtologueSection protologSection = (ProtologueSection) formFactory.createEntityDetailSection(EntityDetailType.PROTOLOG, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
323
        ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
325 324

  
326 325
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
327 326

  
328
        TypeDesignationSection typeDesignationSection = (TypeDesignationSection) formFactory.createEntityDetailSection(EntityDetailType.TYPEDESIGNATION, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
327
        TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
329 328

  
330 329
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
331 330

  
332
        NameRelationshipDetailSection nameRelationshipSection = (NameRelationshipDetailSection) formFactory.createEntityDetailSection(EntityDetailType.NAME_RELATIONSHIP, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
331
        NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
333 332

  
334 333
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
335 334

  
......
360 359

  
361 360
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
362 361

  
363
        NomenclaturalStatusSection nomenclaturalStatusSection = (NomenclaturalStatusSection) formFactory.createEntityDetailSection(EntityDetailType.NOMENCLATURALSTATUS, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
362
        NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
364 363

  
365 364
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
366 365

  
367
        ProtologueSection protologSection = (ProtologueSection) formFactory.createEntityDetailSection(EntityDetailType.PROTOLOG, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
366
        ProtologueSection protologSection = formFactory.createProtologueSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
368 367

  
369 368
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
370 369

  
371
        TypeDesignationSection typeDesignationSection = (TypeDesignationSection) formFactory.createEntityDetailSection(EntityDetailType.TYPEDESIGNATION, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
370
        TypeDesignationSection typeDesignationSection = formFactory.createTypeDesignationSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
372 371

  
373 372
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
374 373

  
375
        NameRelationshipDetailSection nameRelationshipSection = (NameRelationshipDetailSection) formFactory.createEntityDetailSection(EntityDetailType.NAME_RELATIONSHIP, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
374
        NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
376 375

  
377 376
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
378 377

  
......
444 443

  
445 444
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
446 445

  
447
        DescriptionElementSourceSection descriptionElementSourceSection = (DescriptionElementSourceSection) formFactory.createEntityDetailSection(EntityDetailType.DESCRIPTIONELEMENTSOURCE, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
446
        DescriptionElementSourceSection descriptionElementSourceSection = formFactory.createDescriptionElementSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
448 447

  
449 448
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
450 449

  
451
        DescriptionElementMediaSection descriptionElementMediaSection = (DescriptionElementMediaSection) formFactory.createEntityDetailSection(EntityDetailType.DESCRIPTIONELEMENTMEDIA, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
450
        DescriptionElementMediaSection descriptionElementMediaSection = formFactory.createDescriptionElementMediaSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
452 451

  
453 452
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
454 453

  
......
472 471

  
473 472
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
474 473

  
475
        DescribedSpecimenSection describedSpecimenSection = (DescribedSpecimenSection) formFactory.createEntityDetailSection(EntityDetailType.DESCRIBED_SPECIMEN, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
474
        DescribedSpecimenSection describedSpecimenSection = formFactory.createDescribedSpecimenSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
476 475

  
477 476
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
478 477

  
479
        DescriptionSourceSection descriptionSourceSection = (DescriptionSourceSection) formFactory.createEntityDetailSection(EntityDetailType.DESCRIPTIONSOURCE, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
478
        DescriptionSourceSection descriptionSourceSection = formFactory.createDescriptionSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
480 479

  
481 480
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
482 481

  
483
        ScopeSection scopeSection = (ScopeSection) formFactory.createEntityDetailSection(EntityDetailType.SCOPE, getConversationHolder(), parent, ExpandableComposite.TWISTIE);
482
        ScopeSection scopeSection = formFactory.createScopeSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
484 483

  
485 484
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
486 485

  
......
502 501

  
503 502
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
504 503

  
505
        DescriptionSourceSection descriptionSourceSection = (DescriptionSourceSection) formFactory.createEntityDetailSection(EntityDetailType.DESCRIPTIONSOURCE, getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
504
        DescriptionSourceSection descriptionSourceSection = formFactory.createDescriptionSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
506 505

  
507 506
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
508 507

  
......
594 593

  
595 594
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
596 595

  
597
        TaxonomicScopeSection taxonomicScopeSection = (TaxonomicScopeSection) formFactory.createEntityDetailSection(EntityDetailType.TAXONOMIC_SCOPE, getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.COMPACT);
596
        TaxonomicScopeSection taxonomicScopeSection = formFactory.createTaxonomicScopeSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.COMPACT);
598 597

  
599 598
        addPart(polytomousKeyDetailSection);
600 599
        addPart(polytomousKeyNodeDetailSection);
......
628 627

  
629 628
        UserDetailSection userDetailSection = formFactory.createUserDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
630 629

  
631
        GroupsByUserDetailSection groupByUserDetailSection = (GroupsByUserDetailSection) formFactory.createEntityDetailSection(EntityDetailType.GROUPS_BY_USER, getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
630
        GroupsByUserDetailSection groupByUserDetailSection = formFactory.createGroupsByUserDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
632 631

  
633 632
        addPart(userDetailSection);
634 633
        addPart(groupByUserDetailSection);

Also available in: Unified diff