JFace wizard problem
Hi, I am developing a JFace wizard for converting a MySQL DB to Oracle DB. I need to check the user parameters for connecting to the MySQL DB first before I let the user proceed. And than again handle a similar situation for the Oracle DB. Generally I'd like to do that when the user clicks on the Next button. But the problem is that I've added ModifyListeners to the text fields the user is filling with the needed prameters(user name, psw etc.) so that I can invoke setPageComplete() when all the fields are filled. The problem is that setting setPageComplete(true) invokes immediately the method getNextPage() defined in my Wizard class. This behaviour is odd to me - I thought this method is invoked only when the user clicks the Next button. And it does indeed - so getNextPage() is invoked twice in my application. I am totally confused. Does anyone have a clue what I am doing wrong and what is the appropriate approach for this problem. I am new to SWT/JFace and I'm probably doing somthing awfully wrong... I am racking my brains on this problems for two days now.