1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-11 02:55:23 +02:00

Fix class cast exception when going to wizard second time.

When going to a wizard, but hitting back, we reuse the wizard
object when we hit next again. The cast was incorrect for that
object.

Change-Id: I1210f17d57d26b76a47eaedd0f92bb9c63496bf8
This commit is contained in:
Doug Schaefer 2017-11-16 14:56:08 -05:00
parent eb93740aba
commit 494fbe48cb

View file

@ -26,7 +26,6 @@ import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardPage; import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.launchbar.ui.internal.Activator; import org.eclipse.launchbar.ui.internal.Activator;
import org.eclipse.launchbar.ui.internal.Messages; import org.eclipse.launchbar.ui.internal.Messages;
import org.eclipse.launchbar.ui.target.LaunchTargetWizard;
import org.eclipse.swt.SWT; import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.events.SelectionListener;
@ -157,7 +156,7 @@ class NewLaunchTargetWizardSelectionPage extends WizardPage {
return null; return null;
} }
} else { } else {
nextWizard = (LaunchTargetWizard) obj; nextWizard = (Wizard) obj;
} }
return nextWizard.getStartingPage(); return nextWizard.getStartingPage();