Solved

Eclipse:  New File Wizard data communication

Posted on 2004-04-05
7
368 Views
Last Modified: 2012-08-13
I am wondering what the mechnism used in wizard page communication.  For example, page2 needs some values from page1, we can use DialogSettings to store these values and pass to pages.  However, if from page2, I pressed "Back" button and changed something in page1, then click "next" again to page2.  The new value should be reflected in page2.  It seems to me that a listener is needed to update these values, but the implementation is complicated.

Would you please give me some idea how commonly this is handled?

Thanks a lot
0
Comment
Question by:zjiqi0
  • 2
7 Comments
 
LVL 9

Accepted Solution

by:
mmuruganandam earned 125 total points
ID: 10763347
Once an action is performed, the fireChangeProperty never called again in Eclipse.  You can explicitly call the fireChangeProperty method when it is not called.  That way, you can make sure that your changes are reflected in your next page.


Regards,
Muruga
0
 
LVL 14

Assisted Solution

by:Tommy Braas
Tommy Braas earned 125 total points
ID: 10763483
Implement your wizard pages as JavaBeans and have PropertyChange events on all properties. That way a PropertyChangeEvent will be dispatched every time a property changes and you can keep your UI synched.
0
 

Author Comment

by:zjiqi0
ID: 10786351
I do intend to add listener to all the properties, but I am not sure the Listener can modify the property on another page, since checkWidget may fail it.

Are you guys talking about to fire the event and have every related page listen to it, and update itself accordingly?  I don't know how to do this. Will you guys give me some examples?

Besides, I don't know how to use java bean for this either.  Exaples or more detailed description is appreciated.

Thanks you very much.

0
 
LVL 9

Expert Comment

by:mmuruganandam
ID: 10958176
I would recommend for mmuruganandam && orangehead911.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now