aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemy Suen2010-04-12 09:02:24 (EDT)
committerRemy Suen2011-10-06 12:29:18 (EDT)
commit2cbeb0cb92d83dbd427a98ed85f58d99b2be9ba1 (patch)
treef75abc9108ede7a753d6698e3bbd718a9b08a685
parente06dd5f99103007d896b25a77accbefceac258f1 (diff)
downloadeclipse.platform.ui-2cbeb0cb92d83dbd427a98ed85f58d99b2be9ba1.zip
eclipse.platform.ui-2cbeb0cb92d83dbd427a98ed85f58d99b2be9ba1.tar.gz
eclipse.platform.ui-2cbeb0cb92d83dbd427a98ed85f58d99b2be9ba1.tar.bz2
Bug 306711 [EditorMgmt] 'Switch to Editor' should display sort indicators in its column headers
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java
index 71ed94a..3fe8aad 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java
@@ -113,12 +113,15 @@ public class WorkbenchEditorsDialog extends SelectionDialog {
private SelectionListener headerListener = new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
- int index = editorsTable.indexOf((TableColumn) e.widget);
+ TableColumn column = (TableColumn) e.widget;
+ int index = editorsTable.indexOf(column);
if (index == sortColumn) {
reverse = !reverse;
} else {
sortColumn = index;
}
+ editorsTable.setSortDirection(reverse ? SWT.DOWN : SWT.UP);
+ editorsTable.setSortColumn(column);
updateItems();
}
};