?
Solved

Eclipse:  New File Wizard data communication

Posted on 2004-04-05
7
Medium Priority
?
405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
7 Comments
 
LVL 9

Accepted Solution

by:
mmuruganandam earned 500 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 500 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 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