Project

General

Profile

« Previous | Next » 

Revision 57838f98

Added by Katja Luther about 6 years ago

ref #7230: refresh of name editor and details view after changing taxon of misapplied name relationship

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java
24 24
import org.eclipse.core.runtime.IProgressMonitor;
25 25
import org.eclipse.core.runtime.OperationCanceledException;
26 26
import org.eclipse.e4.core.contexts.IEclipseContext;
27
import org.eclipse.e4.core.di.annotations.Optional;
27 28
import org.eclipse.e4.core.services.events.IEventBroker;
28 29
import org.eclipse.e4.ui.di.Focus;
29 30
import org.eclipse.e4.ui.di.Persist;
31
import org.eclipse.e4.ui.di.UIEventTopic;
30 32
import org.eclipse.e4.ui.model.application.ui.MDirtyable;
31 33
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
32 34
import org.eclipse.e4.ui.services.EMenuService;
......
703 705
        return this;
704 706
    }
705 707

  
708
    @Inject
709
    @Optional
710
    private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_NAME_EDITOR)boolean refresh){
711
        if(refresh){
712
            this.redraw();
713
            setDirty();
714
        }
715
    }
716

  
706 717
}

Also available in: Unified diff