Revision 722
trunk/frameworks/_fwAndami/src/com/iver/andami/ui/WaitCursorEventQueue.java | ||
---|---|---|
5 | 5 |
import java.awt.event.InputEvent; |
6 | 6 |
import java.awt.event.InvocationEvent; |
7 | 7 |
|
8 |
import org.apache.log4j.Logger; |
|
9 |
|
|
10 |
import com.iver.andami.messages.NotificationManager; |
|
8 | 11 |
import com.iver.andami.ui.mdiManager.MDIManager; |
9 | 12 |
|
10 | 13 |
|
... | ... | |
14 | 17 |
* @author Fernando Gonz?lez Cort?s |
15 | 18 |
*/ |
16 | 19 |
public class WaitCursorEventQueue extends EventQueue { |
20 |
private static Logger logger = Logger.getLogger(WaitCursorEventQueue.class.getName()); |
|
17 | 21 |
private boolean eventsDisabled = false; |
18 | 22 |
private int delay; |
19 | 23 |
private WaitCursorTimer waitTimer; |
... | ... | |
61 | 65 |
waitTimer.startTimer(event.getSource()); |
62 | 66 |
try { |
63 | 67 |
super.dispatchEvent(event); |
68 |
} catch (RuntimeException e){ |
|
69 |
logger.error("Excepci?n no capturada por el usuario", e); |
|
70 |
NotificationManager.addError("Error", e); |
|
71 |
waitTimer.stopTimer(); |
|
72 |
postEvent(longProcessFinished); |
|
73 |
throw e; |
|
74 |
} catch (Throwable e){ |
|
75 |
NotificationManager.addError("Error", e); |
|
76 |
waitTimer.stopTimer(); |
|
77 |
postEvent(longProcessFinished); |
|
78 |
throw new Error(e); |
|
64 | 79 |
} finally { |
65 | 80 |
waitTimer.stopTimer(); |
66 | 81 |
postEvent(longProcessFinished); |
trunk/frameworks/_fwAndami/src/com/iver/andami/ui/mdiFrame/MDIFrame.java | ||
---|---|---|
471 | 471 |
|
472 | 472 |
try { |
473 | 473 |
ext.execute(actionCommand); |
474 |
} catch (Throwable t) {
|
|
474 |
} catch (RuntimeException t) {
|
|
475 | 475 |
NotificationManager.addError("Error no capturado por el usuario", t); |
476 | 476 |
} |
477 | 477 |
|
Also available in: Unified diff