|
65 | 65 | import org.eclipse.jface.viewers.TableLayout; |
66 | 66 | import org.eclipse.jface.viewers.TreeViewer; |
67 | 67 | import org.eclipse.jface.viewers.Viewer; |
| 68 | +import org.eclipse.jface.viewers.ViewerComparator; |
68 | 69 | import org.eclipse.jface.viewers.ViewerFilter; |
69 | 70 | import org.eclipse.jface.window.Window; |
70 | 71 | import org.eclipse.osgi.util.NLS; |
@@ -262,7 +263,7 @@ private Control createTreeViewer(Composite parent) { |
262 | 263 |
|
263 | 264 | Group knownModules = new Group(parent, SWT.NULL); |
264 | 265 | knownModules.setLayout(new GridLayout()); |
265 | | - knownModules.setText(Messages.CheckConfigurationConfigureDialog_lblKnownModules); |
| 266 | + knownModules.setText(Messages.CheckConfigurationConfigureDialog_lblAvailableModules); |
266 | 267 |
|
267 | 268 | mTxtTreeFilter = new Text(knownModules, SWT.SINGLE | SWT.BORDER); |
268 | 269 | mTxtTreeFilter.setText(mDefaultFilterText); |
@@ -295,6 +296,7 @@ public void focusLost(FocusEvent e) { |
295 | 296 | mTreeViewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH)); |
296 | 297 | mTreeViewer.setContentProvider(new MetaDataContentProvider()); |
297 | 298 | mTreeViewer.setLabelProvider(new MetaDataLabelProvider()); |
| 299 | + mTreeViewer.setComparator(new ViewerComparator()); |
298 | 300 | mTreeViewer.addSelectionChangedListener(mController); |
299 | 301 | mTreeViewer.addDoubleClickListener(mController); |
300 | 302 | mTreeViewer.getTree().addKeyListener(mController); |
|
0 commit comments