debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/LaunchWizard.java
author dadubrow
Tue, 16 Feb 2010 13:44:54 -0600
changeset 969 b0dd389735fb
parent 956 d1e221a2875f
child 983 8b4ee73c530c
permissions -rw-r--r--
externalize strings
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     1
/*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     3
* All rights reserved.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     4
* This component and the accompanying materials are made available
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     6
* which accompanies this distribution, and is available
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     8
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     9
* Initial Contributors:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    11
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    12
* Contributors:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    13
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    14
* Description: 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    15
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    16
*/
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    17
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    18
package com.nokia.cdt.internal.debug.launch.newwizard;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    19
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    20
import java.text.MessageFormat;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    21
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    22
import org.eclipse.core.runtime.CoreException;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    23
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    24
import org.eclipse.jface.dialogs.Dialog;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    25
import org.eclipse.jface.dialogs.IDialogConstants;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    26
import org.eclipse.jface.dialogs.IPageChangedListener;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    27
import org.eclipse.jface.dialogs.PageChangedEvent;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    28
import org.eclipse.jface.layout.GridDataFactory;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    29
import org.eclipse.jface.wizard.IWizardContainer;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    30
import org.eclipse.jface.wizard.Wizard;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    31
import org.eclipse.jface.wizard.WizardDialog;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    32
import org.eclipse.swt.SWT;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    33
import org.eclipse.swt.events.SelectionAdapter;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    34
import org.eclipse.swt.events.SelectionEvent;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    35
import org.eclipse.swt.layout.GridLayout;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    36
import org.eclipse.swt.widgets.Button;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    37
import org.eclipse.swt.widgets.Composite;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    38
import org.eclipse.swt.widgets.Control;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    39
import org.eclipse.swt.widgets.Shell;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    40
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    41
import com.nokia.carbide.remoteconnections.interfaces.IService;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    42
import com.nokia.cdt.internal.debug.launch.LaunchPlugin;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    43
import com.nokia.cdt.internal.debug.launch.wizard.ILaunchCreationWizard;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    44
import com.nokia.cdt.internal.debug.launch.wizard.LaunchOptions;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    45
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    46
/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    47
 * New launch wizard for Carbide 3.0.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    48
 * 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    49
 * See https://xdabug001.ext.nokia.com/bugzilla/show_bug.cgi?id=10419
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    50
 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    51
public class LaunchWizard extends Wizard implements ILaunchCreationWizard {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    52
	 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    53
	private LaunchWizardData launchData;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    54
	private UnifiedLaunchOptionsPage mainPage;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    55
	private Button advancedButton;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    56
	private boolean advancedEdit;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    57
	private IPageChangedListener pageChangedListener;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    58
	private boolean hasFinished;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    59
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    60
	public LaunchWizard(LaunchOptions launchOptions, IService trkService) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    61
		launchData = new LaunchWizardData(launchOptions, trkService);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    62
		mainPage = new UnifiedLaunchOptionsPage(launchData); 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    63
		mainPage.initializeSettings();
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
    64
		setWindowTitle(Messages.getString("LaunchWizard.Title")); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    65
    }
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    66
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    67
	/* (non-Javadoc)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    68
	 * @see org.eclipse.jface.wizard.Wizard#addPages()
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    69
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    70
	@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    71
	public void addPages() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    72
		addPage(mainPage);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    73
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    74
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    75
	/* (non-Javadoc)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    76
	 * @see org.eclipse.jface.wizard.Wizard#setContainer(org.eclipse.jface.wizard.IWizardContainer)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    77
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    78
	@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    79
	public void setContainer(final IWizardContainer wizardContainer) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    80
		super.setContainer(wizardContainer);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    81
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    82
		// Thanks, JFace, for making it so hard to know when the UI is ready
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    83
		if (wizardContainer instanceof WizardDialog && advancedButton == null) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    84
			pageChangedListener = new IPageChangedListener() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    85
				
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    86
				public void pageChanged(PageChangedEvent event) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    87
					addAdvancedButton();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    88
					((WizardDialog)getContainer()).removePageChangedListener(pageChangedListener);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    89
				}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    90
			};
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    91
			((WizardDialog)wizardContainer).addPageChangedListener(pageChangedListener);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    92
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    93
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    94
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    95
	protected void addAdvancedButton() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    96
		if (advancedButton == null) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    97
			Composite parent = (Composite) ((Dialog) getContainer()).buttonBar;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    98
			if (parent != null) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    99
				
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   100
				advancedButton = new Button(parent, SWT.CHECK);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   101
				GridDataFactory.swtDefaults().align(SWT.LEFT, SWT.CENTER).applyTo(advancedButton);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   102
				((GridLayout) parent.getLayout()).numColumns++;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   103
				advancedButton.moveBelow(parent.getChildren()[0]);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   104
				
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   105
				advancedButton.setText(Messages.getString("LaunchWizard.AdvancedLabel")); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   106
				advancedButton.setToolTipText(MessageFormat.format(
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   107
						Messages.getString("LaunchWizard.AdvancedTip"), //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   108
						launchData.getModeLabel()));
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   109
				advancedButton.addSelectionListener(new SelectionAdapter() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   110
					@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   111
					public void widgetSelected(SelectionEvent e) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   112
						updateDebugEditButton();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   113
					}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   114
				});
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   115
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   116
			
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   117
			// Thanks, JFace, for deleting validation messages on the first display
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   118
			mainPage.validatePage();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   119
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   120
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   121
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   122
	@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   123
	public boolean canFinish() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   124
		if (advancedEdit)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   125
			return true;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   126
		return super.canFinish();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   127
	}	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   128
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   129
	protected void updateDebugEditButton() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   130
		Button finishButton = findFinishButton();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   131
		if (finishButton != null) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   132
			advancedEdit = advancedButton.getSelection();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   133
			if (advancedEdit) {
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   134
				finishButton.setText(Messages.getString("LaunchWizard.EditLabel")); //$NON-NLS-1$
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   135
				finishButton.setToolTipText(Messages.getString("LaunchWizard.EditTip")); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   136
				getContainer().updateButtons();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   137
			} else {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   138
				finishButton.setText(launchData.getModeLabel());
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   139
				finishButton.setToolTipText(Messages.getString("LaunchWizard.FinishTip")); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   140
				getContainer().updateButtons();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   141
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   142
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   143
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   144
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   145
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   146
	 * Thanks, SWT and JFace, for making this so difficult
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   147
	 * @return the Finish button
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   148
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   149
	private Button findFinishButton() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   150
		if (getContainer() instanceof Dialog) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   151
			return findFinishButton((Composite) ((Dialog) getContainer()).buttonBar);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   152
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   153
		return null;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   154
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   155
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   156
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   157
	 * @param buttonBar
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   158
	 * @return
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   159
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   160
	private Button findFinishButton(Composite parent) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   161
		for (Control kid : parent.getChildren()) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   162
			if (kid instanceof Button) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   163
				if (kid.getData() instanceof Integer && (Integer) kid.getData() == IDialogConstants.FINISH_ID) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   164
					return (Button) kid;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   165
				}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   166
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   167
			else if (kid instanceof Composite) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   168
				Button button = findFinishButton((Composite) kid);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   169
				if (button != null)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   170
					return button;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   171
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   172
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   173
		return null;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   174
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   175
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   176
	@Override
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   177
	public boolean performFinish() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   178
		hasFinished = true;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   179
		return true;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   180
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   181
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   182
	public boolean shouldOpenLaunchConfigurationDialog() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   183
		return hasFinished && advancedEdit;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   184
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   185
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   186
	public ILaunchConfigurationWorkingCopy getLaunchConfiguration() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   187
		if (!hasFinished)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   188
			return null;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   189
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   190
		ILaunchConfigurationWorkingCopy config = null;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   191
		try {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   192
			config = launchData.createConfiguration();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   193
		} catch (CoreException e) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   194
			LaunchPlugin.log(e);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   195
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   196
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   197
		return config;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   198
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   199
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   200
	public void init() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   201
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   202
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   203
	public int openWizard(Shell shell) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   204
		WizardDialog dialog = new WizardDialog(shell, this);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   205
		return dialog.open();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   206
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   207
}