debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/LaunchWizard.java
equal
deleted
inserted
replaced
36 import org.eclipse.swt.widgets.Button; |
36 import org.eclipse.swt.widgets.Button; |
37 import org.eclipse.swt.widgets.Composite; |
37 import org.eclipse.swt.widgets.Composite; |
38 import org.eclipse.swt.widgets.Control; |
38 import org.eclipse.swt.widgets.Control; |
39 import org.eclipse.swt.widgets.Shell; |
39 import org.eclipse.swt.widgets.Shell; |
40 |
40 |
|
41 import com.nokia.carbide.cpp.ui.CarbideUIPlugin; |
|
42 import com.nokia.carbide.cpp.ui.ICarbideSharedImages; |
41 import com.nokia.carbide.remoteconnections.interfaces.IService; |
43 import com.nokia.carbide.remoteconnections.interfaces.IService; |
42 import com.nokia.cdt.internal.debug.launch.LaunchPlugin; |
44 import com.nokia.cdt.internal.debug.launch.LaunchPlugin; |
43 import com.nokia.cdt.internal.debug.launch.wizard.ILaunchCreationWizard; |
45 import com.nokia.cdt.internal.debug.launch.wizard.ILaunchCreationWizard; |
44 import com.nokia.cdt.internal.debug.launch.wizard.LaunchOptions; |
46 import com.nokia.cdt.internal.debug.launch.wizard.LaunchOptions; |
45 |
47 |
96 if (advancedButton == null) { |
98 if (advancedButton == null) { |
97 Composite parent = (Composite) ((Dialog) getContainer()).buttonBar; |
99 Composite parent = (Composite) ((Dialog) getContainer()).buttonBar; |
98 if (parent != null) { |
100 if (parent != null) { |
99 |
101 |
100 advancedButton = new Button(parent, SWT.CHECK); |
102 advancedButton = new Button(parent, SWT.CHECK); |
101 GridDataFactory.swtDefaults().align(SWT.LEFT, SWT.CENTER).applyTo(advancedButton); |
103 GridDataFactory.swtDefaults().align(SWT.LEFT, SWT.CENTER).indent(6, 0).applyTo(advancedButton); |
102 ((GridLayout) parent.getLayout()).numColumns++; |
104 ((GridLayout) parent.getLayout()).numColumns++; |
103 advancedButton.moveBelow(parent.getChildren()[0]); |
105 advancedButton.moveBelow(parent.getChildren()[0]); |
104 |
106 |
105 advancedButton.setText(Messages.getString("LaunchWizard.AdvancedLabel")); //$NON-NLS-1$ |
107 advancedButton.setText(Messages.getString("LaunchWizard.AdvancedLabel")); //$NON-NLS-1$ |
106 advancedButton.setToolTipText(MessageFormat.format( |
108 advancedButton.setToolTipText(MessageFormat.format( |
196 |
198 |
197 return config; |
199 return config; |
198 } |
200 } |
199 |
201 |
200 public void init() { |
202 public void init() { |
|
203 setDefaultPageImageDescriptor(CarbideUIPlugin.getSharedImages().getImageDescriptor(ICarbideSharedImages.IMG_NEW_LAUNCH_CONFIG_WIZARD_BANNER)); |
201 } |
204 } |
202 |
205 |
203 public int openWizard(Shell shell) { |
206 public int openWizard(Shell shell) { |
204 WizardDialog dialog = new WizardDialog(shell, this); |
207 WizardDialog dialog = new WizardDialog(shell, this); |
205 return dialog.open(); |
208 return dialog.open(); |