Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to disable the whole application.
How to disable the whole application. [message #872325] Tue, 15 May 2012 22:45 Go to next message
Jesus   Luna Quiroga is currently offline Jesus Luna QuirogaFriend
Messages: 67
Registered: July 2009
Location: Mexico
Member

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!
Re: How to disable the whole application. [message #873458 is a reply to message #872325] Fri, 18 May 2012 09:17 Go to previous message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
Hi.

The only other way i can think of is to place a transparent shell over
the entire viewport. That way the user cant click anything.

Greetings,
Tim

Am 16.05.2012 00:45, schrieb Jesus Roberto Luna Quiroga:
> 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!
>

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Jboss problems with javax.servlet
Next Topic:How to protect your rap product?
Goto Forum:
  


Current Time: Wed Dec 01 19:45:36 GMT 2021

Powered by FUDForum. Page generated in 0.05168 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top