debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/LaunchWizard.java
equal
deleted
inserted
replaced
59 |
59 |
60 public LaunchWizard(LaunchOptions launchOptions, IService trkService) { |
60 public LaunchWizard(LaunchOptions launchOptions, IService trkService) { |
61 launchData = new LaunchWizardData(launchOptions, trkService); |
61 launchData = new LaunchWizardData(launchOptions, trkService); |
62 mainPage = new UnifiedLaunchOptionsPage(launchData); |
62 mainPage = new UnifiedLaunchOptionsPage(launchData); |
63 mainPage.initializeSettings(); |
63 mainPage.initializeSettings(); |
64 setWindowTitle("New Launch Configuration Wizard"); |
64 setWindowTitle(Messages.getString("LaunchWizard.Title")); //$NON-NLS-1$ |
65 } |
65 } |
66 |
66 |
67 /* (non-Javadoc) |
67 /* (non-Javadoc) |
68 * @see org.eclipse.jface.wizard.Wizard#addPages() |
68 * @see org.eclipse.jface.wizard.Wizard#addPages() |
69 */ |
69 */ |
100 advancedButton = new Button(parent, SWT.CHECK); |
100 advancedButton = new Button(parent, SWT.CHECK); |
101 GridDataFactory.swtDefaults().align(SWT.LEFT, SWT.CENTER).applyTo(advancedButton); |
101 GridDataFactory.swtDefaults().align(SWT.LEFT, SWT.CENTER).applyTo(advancedButton); |
102 ((GridLayout) parent.getLayout()).numColumns++; |
102 ((GridLayout) parent.getLayout()).numColumns++; |
103 advancedButton.moveBelow(parent.getChildren()[0]); |
103 advancedButton.moveBelow(parent.getChildren()[0]); |
104 |
104 |
105 advancedButton.setText("Edit advanced settings before launch"); |
105 advancedButton.setText(Messages.getString("LaunchWizard.AdvancedLabel")); //$NON-NLS-1$ |
106 advancedButton.setToolTipText(MessageFormat.format( |
106 advancedButton.setToolTipText(MessageFormat.format( |
107 "Before finishing the wizard, edit settings in the ''{0} Configurations'' dialog.", |
107 Messages.getString("LaunchWizard.AdvancedTip"), //$NON-NLS-1$ |
108 launchData.getModeLabel())); |
108 launchData.getModeLabel())); |
109 advancedButton.addSelectionListener(new SelectionAdapter() { |
109 advancedButton.addSelectionListener(new SelectionAdapter() { |
110 @Override |
110 @Override |
111 public void widgetSelected(SelectionEvent e) { |
111 public void widgetSelected(SelectionEvent e) { |
112 updateDebugEditButton(); |
112 updateDebugEditButton(); |
129 protected void updateDebugEditButton() { |
129 protected void updateDebugEditButton() { |
130 Button finishButton = findFinishButton(); |
130 Button finishButton = findFinishButton(); |
131 if (finishButton != null) { |
131 if (finishButton != null) { |
132 advancedEdit = advancedButton.getSelection(); |
132 advancedEdit = advancedButton.getSelection(); |
133 if (advancedEdit) { |
133 if (advancedEdit) { |
134 finishButton.setText("Edit"); |
134 finishButton.setText(Messages.getString("LaunchWizard.EditLabel")); //$NON-NLS-1$ |
135 finishButton.setToolTipText("Click to accept settings and edit advanced settings."); |
135 finishButton.setToolTipText(Messages.getString("LaunchWizard.EditTip")); //$NON-NLS-1$ |
136 getContainer().updateButtons(); |
136 getContainer().updateButtons(); |
137 } else { |
137 } else { |
138 finishButton.setText(launchData.getModeLabel()); |
138 finishButton.setText(launchData.getModeLabel()); |
139 finishButton.setToolTipText("Click to accept settings and launch the program."); |
139 finishButton.setToolTipText(Messages.getString("LaunchWizard.FinishTip")); //$NON-NLS-1$ |
140 getContainer().updateButtons(); |
140 getContainer().updateButtons(); |
141 } |
141 } |
142 } |
142 } |
143 } |
143 } |
144 |
144 |