Solved

Eclipse:  New File Wizard data communication

Posted on 2004-04-05
7
377 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
GUI builder for Eclipse? 8 35
eclipse shortcuts 9 55
servlet example 17 31
printf performancy 11 39
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

770 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