Revision 18fd7dae
Added by Patrick Plitzner over 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/ConceptViewPart.java | ||
---|---|---|
32 | 32 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
33 | 33 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; |
34 | 34 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
35 |
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput; |
|
35 | 36 |
import eu.etaxonomy.taxeditor.editor.key.AbstractGraphKeyEditor; |
36 |
import eu.etaxonomy.taxeditor.editor.view.media.MediaViewPart; |
|
37 | 37 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
38 | 38 |
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails; |
39 | 39 |
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData; |
... | ... | |
87 | 87 |
IEditorInput input = ((IEditorPart) part).getEditorInput(); |
88 | 88 |
showViewer(part, new StructuredSelection(input)); |
89 | 89 |
} |
90 |
else{ |
|
91 |
showViewer(); |
|
92 |
} |
|
93 | 90 |
} |
94 | 91 |
else { |
95 | 92 |
showEmptyPage(); |
96 | 93 |
} |
97 | 94 |
|
98 | 95 |
} |
96 |
|
|
97 |
@Override |
|
98 |
protected String createPartTitle(Object selectedObject) { |
|
99 |
if(selectedObject instanceof TaxonEditorInput){ |
|
100 |
return super.createPartTitle(((TaxonEditorInput) selectedObject).getTaxon()); |
|
101 |
} |
|
102 |
return super.createPartTitle(selectedObject); |
|
103 |
} |
|
99 | 104 |
|
100 | 105 |
@Override |
101 | 106 |
public boolean onComplete() { |
... | ... | |
165 | 170 |
|
166 | 171 |
} |
167 | 172 |
|
173 |
@Override |
|
174 |
protected String getViewName() { |
|
175 |
return "Concept Relations"; |
|
176 |
} |
|
177 |
|
|
168 | 178 |
} |
Also available in: Unified diff
Generalize title creation for cdm view parts