Project

General

Profile

Revision 94665309

ID946653094d8e483fefa6a862c0c7cb73b2b5ab3f
Parent 42b909f6
Child e4c70a06

Added by Katja Luther almost 3 years ago

set derivate view dirty if description detail is edited

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptiveViewPart.java
9 9

  
10 10
package eu.etaxonomy.taxeditor.editor.view.descriptive;
11 11

  
12
import java.util.ArrayList;
12 13
import java.util.HashMap;
13 14
import java.util.Map;
14 15

  
16
import javax.annotation.PostConstruct;
17
import javax.inject.Inject;
18

  
19
import org.eclipse.core.runtime.IProgressMonitor;
20
import org.eclipse.e4.ui.di.Persist;
21
import org.eclipse.e4.ui.model.application.ui.MDirtyable;
22
import org.eclipse.e4.ui.workbench.UIEvents.Dirtyable;
15 23
import org.eclipse.jface.action.Action;
16 24
import org.eclipse.jface.action.GroupMarker;
17 25
import org.eclipse.jface.action.IAction;
......
37 45
import org.eclipse.ui.IWorkbenchPart;
38 46
import org.eclipse.ui.internal.E4PartWrapper;
39 47

  
48
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
49
import eu.etaxonomy.cdm.api.service.IOccurrenceService;
40 50
import eu.etaxonomy.cdm.model.common.CdmBase;
41 51
import eu.etaxonomy.cdm.model.description.DescriptionBase;
42 52
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
......
52 62
import eu.etaxonomy.taxeditor.model.AbstractUtility;
53 63
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer;
54 64
import eu.etaxonomy.taxeditor.model.FeatureNodeContainerTree;
65
import eu.etaxonomy.taxeditor.model.IDirtyMarkable;
55 66
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
56 67
import eu.etaxonomy.taxeditor.model.IPartContentHasFactualData;
57 68
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
58 69
import eu.etaxonomy.taxeditor.model.ImageResources;
70
import eu.etaxonomy.taxeditor.store.CdmStore;
59 71
import eu.etaxonomy.taxeditor.view.AbstractCdmEditorViewPart;
60 72
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart;
61 73
import eu.etaxonomy.taxeditor.view.supplementaldata.SupplementalDataViewPart;
......
85 97
	protected int dndOperations = DND.DROP_COPY | DND.DROP_MOVE;
86 98

  
87 99
    private DescriptiveContentProvider provider;
88

  
100
    
101
    
89 102
	/** {@inheritDoc} */
90 103
	@Override
91 104
	public void createViewer(Composite parent) {
......
275 288
		    ((BulkEditor) part).changed(selection.getFirstElement());
276 289
		    
277 290
		}
278

  
279

  
291
		
292
		if (part instanceof E4PartWrapper){
293
	    	part = AbstractUtility.getE4WrappedPart(part);
294
	    	if (part instanceof IDirtyMarkable){
295
	    		 StructuredSelection selection = new StructuredSelection(object);
296
	    		((IDirtyMarkable)part).changed(selection.getFirstElement());
297
	    	}
298
	    }
299

  
300
		
280 301
		super.changed(object);
281 302
	}
282 303

  
......
295 316
	    provider.toggleShowOnlyIndividualAssociations();
296 317
	    viewer.refresh();
297 318
	}
319
	
320
	
321

  
298 322
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)