Open SWT.Shell and make display sleep [message #1764409] |
Mon, 29 May 2017 14:05 |
Marcelo Amoretti Messages: 1 Registered: April 2017 |
Junior Member |
|
|
Hello, everyone.
I have an application which consists on a BasicEntryPoint (Composite) and from this composite I open a SWT.Shell. What I would like to do is make the BasicEntryPoint wait for the user to perform some actions on this new Shell. An example is: The shell is opened and I wait for the user to select some data. After the data is selected, the shell must be closed and the BasicEntryPoint will call some methods to return the selected data inside the shell.
A snippet would be:
Basic Entry Point side:
ExampleShell shell = new Shell();
ExampleShell side:
User selects data and store it into variables;
public long methodA(){
return dataA;}
public String methodB(){
return dataB;}
Basic Entry Point side:
long number = shell.methodA();
String string = shell.methodB();
The main issue found here is that the display doesn't sleep while I'm using this shell. Basically the main code keeps running and all I get from the shell are null pointers. Any thoughts here?
[Updated on: Wed, 31 May 2017 13:42] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03370 seconds