Project

General

Profile

Revision f6fe3908

IDf6fe390861fbe498653dfebdda3de2236a196f92
Parent ede4ba36
Child 2674f1d5

Added by Patrick Plitzner over 3 years ago

ref #7439 Update entity in bulk editor when editing details

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorE4.java
35 35
import org.eclipse.jface.viewers.StructuredSelection;
36 36
import org.eclipse.nebula.widgets.nattable.NatTable;
37 37
import org.eclipse.nebula.widgets.nattable.command.VisualRefreshCommand;
38
import org.eclipse.nebula.widgets.nattable.command.VisualRefreshCommandHandler;
38 39
import org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration;
39 40
import org.eclipse.nebula.widgets.nattable.config.ConfigRegistry;
40 41
import org.eclipse.nebula.widgets.nattable.config.DefaultNatTableStyleConfiguration;
......
312 313

  
313 314
	@Focus
314 315
	public void setFocus() {
316
        //make sure to bind again if maybe in another view the conversation was unbound
317
        if(conversation!=null && !conversation.isBound()){
318
            conversation.bind();
319
        }
320
        if(input.getCdmEntitySession()!= null) {
321
            input.getCdmEntitySession().bind();
322
        }
323

  
315 324
	    //make sure to bind again if maybe in another view the conversation was unbound
316 325
	    eventBroker.post(WorkbenchEventConstants.CURRENT_ACTIVE_EDITOR, this);
317 326
	}
......
447 456
        }
448 457
        else if (element instanceof CdmBase) {
449 458
            getEditorInput().addSaveCandidate((CdmBase)element);
459
            input.replaceInModel((CdmBase) element);
450 460
        }
451 461
        dirty.setDirty(true);
452 462
    }
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java
310 310
		return model;
311 311
	}
312 312

  
313
	protected boolean replaceInModel(T entity) {
313
	public boolean replaceInModel(T entity) {
314 314
	    int index = model.indexOf(entity);
315 315
	    if(index >= 0) {
316 316
	        model.set(index, entity);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)