Revision 310e8ec9
Added by Patrick Plitzner over 9 years ago
- added finally-clause for asynchronous delay flag #2754
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/AbstractCdmEditorViewPart.java | ||
---|---|---|
29 | 29 |
* This is the monitor for the DelaySelection runnable. |
30 | 30 |
* If it is <code>true</code> then it is currently delaying a selection. |
31 | 31 |
*/ |
32 |
private boolean isInDelay = false;
|
|
32 |
private boolean isInDelay; |
|
33 | 33 |
|
34 | 34 |
|
35 | 35 |
/** |
... | ... | |
51 | 51 |
*/ |
52 | 52 |
@Override |
53 | 53 |
public void run() { |
54 |
internal_selectionChanged(part, selection); |
|
55 |
isInDelay = false; |
|
54 |
try{ |
|
55 |
internal_selectionChanged(part, selection); |
|
56 |
} |
|
57 |
finally{ |
|
58 |
isInDelay = false; |
|
59 |
} |
|
56 | 60 |
} |
57 | 61 |
|
58 | 62 |
public synchronized void setSelection(ISelection selection) { |
... | ... | |
99 | 103 |
@Override |
100 | 104 |
public void createPartControl(Composite parent) { |
101 | 105 |
super.createPartControl(parent); |
106 |
isInDelay = false; |
|
102 | 107 |
} |
103 | 108 |
|
104 | 109 |
/** |
Also available in: Unified diff