Revision 221d1c69
Added by Katja Luther almost 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/AbstractCdmEditorViewPart.java | ||
---|---|---|
78 | 78 |
/** {@inheritDoc} */ |
79 | 79 |
@Override |
80 | 80 |
public void selectionChanged(IWorkbenchPart part, ISelection selection) { |
81 |
if(delaySelection==null){ |
|
81 |
//to avoid widget is disposed exceptions |
|
82 |
if(getViewer().getControl().isDisposed()){ |
|
83 |
return; |
|
84 |
} |
|
85 |
if(delaySelection==null){ |
|
82 | 86 |
delaySelection = new DelaySelection(part, selection); |
83 | 87 |
} |
84 | 88 |
delaySelection.setPart(part); |
... | ... | |
88 | 92 |
Display.getCurrent().asyncExec(delaySelection); |
89 | 93 |
} |
90 | 94 |
} |
95 |
|
|
96 |
|
|
91 | 97 |
|
92 | 98 |
/** {@inheritDoc} */ |
93 | 99 |
@Override |
Also available in: Unified diff
avoid widget is disposed exceptions