Author: scabanovich
Date: 2010-04-21 11:45:45 -0400 (Wed, 21 Apr 2010)
New Revision: 21598
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardStep.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5946
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardStep.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardStep.java 2010-04-21
15:31:43 UTC (rev 21597)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardStep.java 2010-04-21
15:45:45 UTC (rev 21598)
@@ -14,6 +14,7 @@
import java.util.Properties;
import org.eclipse.jface.preference.FieldEditor;
+import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.widgets.Composite;
import org.jboss.tools.common.meta.action.XAttributeData;
@@ -51,9 +52,11 @@
attributes = null;
}
- public void setWizard(DefaultStandardWizard wizard) {
+ public void setWizard(IWizard wizard) {
super.setWizard(wizard);
- this.wizard = wizard;
+ if(wizard instanceof DefaultStandardWizard) {
+ this.wizard = (DefaultStandardWizard)wizard;
+ }
}
public void createControl(Composite parent) {