Project

General

Profile

« Previous | Next » 

Revision 342606ca

Added by Patrick Plitzner over 8 years ago

Keep media view and factual data view enabled when no significant
selection occurs (#5195)

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptiveViewPart.java
57 57
import eu.etaxonomy.taxeditor.editor.view.checklist.ChecklistEditor;
58 58
import eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView;
59 59
import eu.etaxonomy.taxeditor.editor.view.derivate.DerivateViewEditorInput;
60
import eu.etaxonomy.taxeditor.editor.view.media.MediaViewPart;
60 61
import eu.etaxonomy.taxeditor.model.AbstractUtility;
61 62
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer;
62 63
import eu.etaxonomy.taxeditor.model.FeatureNodeContainerTree;
......
223 224
		if(part == this){
224 225
		    return;
225 226
		}
226
		if(part instanceof DetailsViewPart || part instanceof SupplementalDataViewPart){
227
		    // do not show empty page as these views are also used to edit the description selected in this view
228
		    return;
229
		}
227
        if (part instanceof DetailsViewPart || part instanceof SupplementalDataViewPart
228
                || part instanceof MediaViewPart) {
229
            // do not show empty page as these views are also used to edit the
230
            // description selected in this view
231
            return;
232
        }
230 233
		// unpackage TreeNode of DerivateView
231 234
		else if(part instanceof DerivateView){
232 235
		    TreeNode treeNodeOfSelection = EditorUtil.getTreeNodeOfSelection(selection);
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/MediaViewPart.java
31 31
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
32 32
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor;
33 33
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor;
34
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart;
34 35
import eu.etaxonomy.taxeditor.model.AbstractUtility;
35 36
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
36 37
import eu.etaxonomy.taxeditor.model.IPartContentHasMedia;
......
97 98
			return;
98 99
		}
99 100

  
100
        if(part instanceof DetailsViewPart || part instanceof SupplementalDataViewPart){
101
            // do not show empty page as these views are also used to edit the description selected in this view
101
        if (part instanceof DetailsViewPart || part instanceof SupplementalDataViewPart
102
                || part instanceof DescriptiveViewPart) {
103
            // do not show empty page as these views are also used to edit the
104
            // description selected in this view
102 105
            return;
103 106
        }
104 107

  

Also available in: Unified diff