views:

805

answers:

3

I'm writing a wizard for an Eclipse RCP application. After doing some processing on a file and taking some user input, I don't want to let the user go back to make changes. At this point they must either accept or reject the changes they are about to make to the system.

What I can't seem to find is a method call that lets me override the buttons that display or the user's ability to hit the back button. I'd prefer that it not be there or at least be disabled.

Has anyone found a way to do this using the JFace Wizard and WizardPage?

Usability-wise, am I breaking wizard conventions? Should I consider a different approach to the problem?

+3  A: 

You can return null from the getPreviousPage() method in your wizard page implementation.

jodonnell
+3  A: 

From a UI perspective this seems rather bad. Your users are going to get frustrated if they make a mistake and want to go back and correct it and you don't let them. I think it would be much better to change the application to allow going back rather than looking for ways to prevent it.

Chris Upchurch
A: 

There is no way to do this using standard JFace wizard APIs. My team accomplished this by writing a custom WizardDialog. We did this on an Eclipse RCP application and not on an eclipse plugin. Disabling the back button is breaking convention, but our business analysts really wanted the functionality.

Heath Borders