Revision c2784f55
Added by Patrick Plitzner over 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/ConceptViewPart.java | ||
---|---|---|
33 | 33 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; |
34 | 34 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
35 | 35 |
import eu.etaxonomy.taxeditor.editor.key.AbstractGraphKeyEditor; |
36 |
import eu.etaxonomy.taxeditor.editor.view.media.MediaViewPart; |
|
36 | 37 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
37 | 38 |
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails; |
38 | 39 |
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData; |
39 | 40 |
import eu.etaxonomy.taxeditor.model.LineSelection; |
40 | 41 |
import eu.etaxonomy.taxeditor.view.AbstractCdmEditorViewPart; |
42 |
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart; |
|
43 |
import eu.etaxonomy.taxeditor.view.supplementaldata.SupplementalDataViewPart; |
|
41 | 44 |
|
42 | 45 |
/** |
43 | 46 |
* @author n.hoffmann |
... | ... | |
60 | 63 |
showEmptyPage(); |
61 | 64 |
return; |
62 | 65 |
} |
63 |
|
|
64 |
if(part instanceof BulkEditor && selection instanceof LineSelection){ |
|
66 |
|
|
67 |
if (part instanceof DetailsViewPart || part instanceof SupplementalDataViewPart) { |
|
68 |
// do not show empty page as these views are also used to edit the |
|
69 |
// description selected in this view |
|
70 |
return; |
|
71 |
} |
|
72 |
else if(part instanceof BulkEditor && selection instanceof LineSelection){ |
|
65 | 73 |
if(((LineSelection) selection).getFirstElement() instanceof Taxon){ |
66 | 74 |
showViewer(part, (LineSelection) selection); |
67 | 75 |
} |
... | ... | |
70 | 78 |
} |
71 | 79 |
return; |
72 | 80 |
} |
73 |
|
|
74 | 81 |
else if(part instanceof AbstractGraphKeyEditor){ |
75 | 82 |
showEmptyPage(); |
76 | 83 |
return; |
77 | 84 |
} |
78 |
|
|
79 | 85 |
else if(part instanceof MultiPageTaxonEditor){ |
80 | 86 |
if(! part.equals(this.part)){ |
81 | 87 |
IEditorInput input = ((IEditorPart) part).getEditorInput(); |
Also available in: Unified diff
ref #5801 Leave concept view active when editing in details/supplemental
view