Project

General

Profile

« Previous | Next » 

Revision 2832a925

Added by Patrick Plitzner over 9 years ago

  • implemented asynchronous selection changed event for subclasses of AbstractCdmEditorViewPart
    • all sub classes must implement internal_selectionChanged() method where the usual selection handling is done
    • the super class invokes internal_selectionChanged() asynchronously
    • this should fix the arbitrary warning of recursive part activation
    • it also prevents double activation which occurred in the DetailsView from time to time

fix for #2754

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/supplementaldata/SupplementalDataViewPart.java
54 54

  
55 55
	/** {@inheritDoc} */
56 56
	@Override
57
    public void selectionChanged(IWorkbenchPart part, ISelection selection) {
57
	protected void internal_selectionChanged(IWorkbenchPart part, ISelection selection) {
58 58
		if(AbstractUtility.getActiveEditor() == null){
59 59
			showEmptyPage();
60 60
			return;

Also available in: Unified diff