How to disable the whole application. [message #872325] |
Tue, 15 May 2012 22:45 |
|
Hi,
I have an application that uses JMS with RAP and since the JMS messages are asynchronous the application uses a simple mechanism to block or disable the whole application while a JMS message is sent and received.
The process or mechanism is the following:
- When a request is done a JMS message is sent and the application is disabled:
display.getActiveShell().setEnabled(false);
- A JMS message is received by a background thread, using the UICallback the application is enabled:
display.syncExec(new Runnable() {
public void run() {
display.getActiveShell().setEnabled(false);
}
});
All this works fine, but every time the application is disabled it turns all grayed out and since this mechanism is heavily used it doesn't look ok.
I want to know if there is another way to disable the whole application in order to avoid the grayed look and have a smoother way to do this.
I hope you can help me with this!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03550 seconds