Results 1 to 2 of 2
- 10-18-2010, 10:26 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 2
- Rep Power
- 0
Calling swt shells one after another
Hi, i'm new to SWT and i need to do this:
-check condition1 and call shell1 if condition1 is true
-if shell1 is opened, check condition2 to decide whether to open shell2 or go directly to shell3. Close shell1
-if shell1 wasnt open (condition1=false), check condition2(same as above) to decide whether to open shell2 or go directly to shell3
-if shell2 was opened(either from shell1 or as the first shell), take some input from the user, close shell2 when he confirms it, open shell3 and give the input to shell3
-shell3 is the final shell
So to sum up, I only need one shell opened at the time; if I opened shell2, shell2 and shell3 need to communicate; the possible scenarios are: shell3; shell2->shell3; shell1->shell2->shell3.
This is a sketch of my solution:
http://pastebin.com/xxtJd3RS
I imagined shell2 and shell3 could communicate by setting some static properties...
Is my plan ok or is there a better way for this in SWT?Last edited by Maja; 10-18-2010 at 10:30 AM.
- 10-18-2010, 02:36 PM #2
Member
- Join Date
- Oct 2010
- Posts
- 1
- Rep Power
- 0
maybe this thread will help you out. [news.eclipse.platform.swt] Re: Calling a shell from another method
I was hoping to find an answer about this topic too and was hoping to find the answer how to call shells from different classes, but this might work as well.
I hope someone can answer the above question too. Would be a great help!
Similar Threads
-
Calling for methods
By soccer_kid_6 in forum New To JavaReplies: 3Last Post: 02-27-2010, 10:12 PM -
Need help calling from a different method
By Mayur in forum New To JavaReplies: 6Last Post: 03-08-2009, 10:27 PM -
Constructor calling
By ravian in forum New To JavaReplies: 2Last Post: 12-22-2007, 07:53 PM -
Calling Methods
By bluegreen7hi in forum New To JavaReplies: 3Last Post: 12-17-2007, 07:22 AM -
Help with Calling a method
By Albert in forum New To JavaReplies: 3Last Post: 07-10-2007, 04:27 PM
Bookmarks