Results 1 to 2 of 2
  1. #1
    Maja is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

    Default 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 09:30 AM.

  2. #2
    koenderoo is offline Member
    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    0

    Default

    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

  1. Calling for methods
    By soccer_kid_6 in forum New To Java
    Replies: 3
    Last Post: 02-27-2010, 09:12 PM
  2. Need help calling from a different method
    By Mayur in forum New To Java
    Replies: 6
    Last Post: 03-08-2009, 09:27 PM
  3. Constructor calling
    By ravian in forum New To Java
    Replies: 2
    Last Post: 12-22-2007, 06:53 PM
  4. Calling Methods
    By bluegreen7hi in forum New To Java
    Replies: 3
    Last Post: 12-17-2007, 06:22 AM
  5. Help with Calling a method
    By Albert in forum New To Java
    Replies: 3
    Last Post: 07-10-2007, 03:27 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •