Revision 8faa9f3b
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/e4/ConceptViewPartE4.java | ||
---|---|---|
33 | 33 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
34 | 34 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
35 | 35 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; |
36 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
|
37 | 36 |
import eu.etaxonomy.taxeditor.editor.key.AbstractGraphKeyEditor; |
38 | 37 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
38 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditorE4; |
|
39 | 39 |
import eu.etaxonomy.taxeditor.editor.view.concept.ConceptContentProvider; |
40 | 40 |
import eu.etaxonomy.taxeditor.editor.view.concept.ConceptLabelProvider; |
41 | 41 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
42 | 42 |
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails; |
43 | 43 |
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData; |
44 | 44 |
import eu.etaxonomy.taxeditor.model.LineSelection; |
45 |
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart; |
|
46 | 45 |
import eu.etaxonomy.taxeditor.view.e4.AbstractCdmEditorPartE4; |
47 |
import eu.etaxonomy.taxeditor.view.supplementaldata.SupplementalDataViewPart; |
|
46 |
import eu.etaxonomy.taxeditor.view.e4.details.DetailsPartE4; |
|
47 |
import eu.etaxonomy.taxeditor.view.e4.supplementaldata.SupplementalDataPartE4; |
|
48 | 48 |
|
49 | 49 |
/** |
50 | 50 |
* |
... | ... | |
72 | 72 |
|
73 | 73 |
Object partObject = createPartObject(activePart); |
74 | 74 |
|
75 |
if (partObject instanceof DetailsViewPart || partObject instanceof SupplementalDataViewPart) {
|
|
75 |
if (partObject instanceof DetailsPartE4 || partObject instanceof SupplementalDataPartE4) {
|
|
76 | 76 |
// do not show empty page as these views are also used to edit the |
77 | 77 |
// description selected in this view |
78 | 78 |
return; |
... | ... | |
89 | 89 |
else if(partObject instanceof AbstractGraphKeyEditor){ |
90 | 90 |
showEmptyPage(); |
91 | 91 |
} |
92 |
else if(partObject instanceof MultiPageTaxonEditor){
|
|
92 |
else if(partObject instanceof TaxonNameEditorE4){
|
|
93 | 93 |
IEditorInput input = ((IEditorPart) partObject).getEditorInput(); |
94 | 94 |
showViewer(new StructuredSelection(input), activePart, viewer); |
95 | 95 |
} |
... | ... | |
99 | 99 |
|
100 | 100 |
} |
101 | 101 |
|
102 |
//FIXME E4 implement |
|
103 |
// @Override |
|
104 |
// protected String createPartTitle(Object selectedObject) { |
|
105 |
// if(selectedObject instanceof TaxonEditorInput){ |
|
106 |
// return super.createPartTitle(((TaxonEditorInput) selectedObject).getTaxon()); |
|
107 |
// } |
|
108 |
// return super.createPartTitle(selectedObject); |
|
109 |
// } |
|
110 |
|
|
111 | 102 |
@PostConstruct |
112 |
public void create(Composite parent, EMenuService menuService) { |
|
103 |
public void create(Composite parent, EMenuService menuService, MPart thisPart) { |
|
104 |
|
|
105 |
this.thisPart = thisPart; |
|
113 | 106 |
|
114 | 107 |
ConceptRelationViewer conceptViewer = new ConceptRelationViewer(parent); |
115 | 108 |
|
Also available in: Unified diff
ref #6925 Update part titles