Revision 69be3e73
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/FactualDataPartE4.java | ||
---|---|---|
38 | 38 |
import eu.etaxonomy.cdm.model.description.IDescribable; |
39 | 39 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
40 | 40 |
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase; |
41 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
|
42 | 41 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4; |
43 | 42 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
44 | 43 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditorE4; |
45 |
import eu.etaxonomy.taxeditor.editor.view.checklist.e4.ChecklistEditorE4; |
|
46 | 44 |
import eu.etaxonomy.taxeditor.editor.view.concept.e4.ConceptViewPartE4; |
47 | 45 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementDragListener; |
48 | 46 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementDropAdapter; |
... | ... | |
128 | 126 |
// description selected in this view |
129 | 127 |
return; |
130 | 128 |
} |
129 |
// if(partObject instanceof ChecklistEditorE4){ |
|
130 |
// IWorkbenchPage page = PlatformUI.getWorkbench() |
|
131 |
// .getActiveWorkbenchWindow().getActivePage(); |
|
132 |
// page.hideView(page.findView("eu.etaxonomy.taxeditor.editor.view.descriptive.e4.FactualDataPartE4")); |
|
133 |
// } |
|
131 | 134 |
|
132 | 135 |
if(partObject instanceof IPartContentHasFactualData){ |
133 | 136 |
if (!viewer.getControl().isDisposed()){ |
... | ... | |
138 | 141 |
showEmptyPage(); |
139 | 142 |
return; |
140 | 143 |
} |
141 |
if(partObject instanceof ChecklistEditorE4){ |
|
142 |
if(structuredSelection.getFirstElement() instanceof Taxon){ |
|
143 |
Taxon taxon = (Taxon)structuredSelection.getFirstElement(); |
|
144 |
structuredSelection = new StructuredSelection(taxon); |
|
145 |
} |
|
146 |
} |
|
144 |
|
|
147 | 145 |
Object firstElement = structuredSelection.getFirstElement(); |
148 | 146 |
if (partObject instanceof TaxonNameEditorE4){ |
149 | 147 |
if (firstElement != ((TaxonNameEditorE4)partObject).getTaxon()){ |
Also available in: Unified diff
ref #7793: add preference to hide all specimen related issues