Project

General

Profile

« Previous | Next » 

Revision 16c8837a

Added by Patrick Plitzner over 6 years ago

ref #6925 Set conversation and cdmEntitySession to null for dispose

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/e4/PolytomousKeyListEditorE4.java
12 12
import java.util.List;
13 13

  
14 14
import javax.annotation.PostConstruct;
15
import javax.annotation.PreDestroy;
15 16
import javax.inject.Inject;
16 17

  
17 18
import org.eclipse.core.runtime.IProgressMonitor;
......
240 241
        menuService.registerContextMenu(viewer.getControl(), "eu.etaxonomy.taxeditor.editor.popupmenu.polytomouskeylisteditor");
241 242
	}
242 243

  
244

  
245
    @PreDestroy
246
    public void dispose() {
247
        if(input!=null){
248
            input.dispose();
249
            input.getConversationHolder().close();
250
        }
251
    }
252

  
243 253
	public int getTableItemCount() {
244 254
	    if (viewer != null && viewer.getTable() != null) {
245 255
	        return viewer.getTable().getItemCount();

Also available in: Unified diff