debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/wizard/LaunchCategorySelectionPage.java
equal
deleted
inserted
replaced
124 } |
124 } |
125 |
125 |
126 public void createDescriptionIn(Composite composite) { |
126 public void createDescriptionIn(Composite composite) { |
127 descriptionBrowser.createControl(composite); |
127 descriptionBrowser.createControl(composite); |
128 Control c = descriptionBrowser.getControl(); |
128 Control c = descriptionBrowser.getControl(); |
|
129 c.setData(".uid", "LaunchCatagorySelection.descriptionBrowser"); |
129 GridData gd = new GridData(GridData.FILL_BOTH); |
130 GridData gd = new GridData(GridData.FILL_BOTH); |
130 gd.widthHint = 200; |
131 gd.widthHint = 200; |
131 c.setLayoutData(gd); |
132 c.setLayoutData(gd); |
132 } |
133 } |
133 |
134 |
148 |
149 |
149 Label label = new Label(container, SWT.NONE); |
150 Label label = new Label(container, SWT.NONE); |
150 label.setText(Messages.getString("LaunchCategorySelectionPage.categoryLabel")); //$NON-NLS-1$ |
151 label.setText(Messages.getString("LaunchCategorySelectionPage.categoryLabel")); //$NON-NLS-1$ |
151 GridData gd = new GridData(); |
152 GridData gd = new GridData(); |
152 label.setLayoutData(gd); |
153 label.setLayoutData(gd); |
|
154 label.setData(".uid", "LaunchCategorySelectionPage.label"); |
153 |
155 |
154 SashForm sashForm = new SashForm(container, SWT.VERTICAL); |
156 SashForm sashForm = new SashForm(container, SWT.VERTICAL); |
155 gd = new GridData(GridData.FILL_BOTH); |
157 gd = new GridData(GridData.FILL_BOTH); |
156 gd.widthHint = 300; |
158 gd.widthHint = 300; |
157 gd.heightHint = 300; |
159 gd.heightHint = 300; |
177 |
179 |
178 // select the first element by default |
180 // select the first element by default |
179 categorySelectionTableViewer.setSelection(new StructuredSelection(categorySelectionTableViewer.getElementAt(0)), true); |
181 categorySelectionTableViewer.setSelection(new StructuredSelection(categorySelectionTableViewer.getElementAt(0)), true); |
180 |
182 |
181 PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), LaunchWizardHelpIds.CATEGORY_SELECTION_PAGE); |
183 PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), LaunchWizardHelpIds.CATEGORY_SELECTION_PAGE); |
|
184 } |
|
185 |
|
186 public TableViewer getViewer() { |
|
187 return categorySelectionTableViewer; |
182 } |
188 } |
183 |
189 |
184 public void selectionChanged(SelectionChangedEvent event) { |
190 public void selectionChanged(SelectionChangedEvent event) { |
185 String description = null; |
191 String description = null; |
186 IStructuredSelection selection = (IStructuredSelection) event.getSelection(); |
192 IStructuredSelection selection = (IStructuredSelection) event.getSelection(); |