Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2010-11-25 11:46:27 +0000
committerDani Megert2010-11-25 11:46:27 +0000
commitcb712319bde526cecce256626e758883eff56b86 (patch)
treefb9fa50adbf71b00e8cccf42ac8b40a93f5b7bac
parentbe59eae99062397bc130eed116fde947c6332f1b (diff)
downloadeclipse.platform.team-cb712319bde526cecce256626e758883eff56b86.tar.gz
eclipse.platform.team-cb712319bde526cecce256626e758883eff56b86.tar.xz
eclipse.platform.team-cb712319bde526cecce256626e758883eff56b86.zip
Fixed bug 331112: History view's tag table does not remember sort order
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java
index baeadb974..83ed8100e 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSHistoryPage.java
@@ -159,6 +159,7 @@ public class CVSHistoryPage extends HistoryPage implements IAdaptable, IHistoryC
private final static String SASH_WEIGHTS = "SASH_WEIGHTS"; //$NON-NLS-1$
private final static String INNER_SASH_WEIGHTS = "INNER_SASH_WEIGHTS"; //$NON-NLS-1$
private final static String SASH_WEIGHTS_SEPARATOR = ";"; //$NON-NLS-1$
+ private final static String SORT_ORDER_KEY = "SORT_ORDER"; //$NON-NLS-1$
// page settings section name
private static final String CVS_HISTORY_PAGE_SECTION = CVSHistoryPage.class.getName();
@@ -170,7 +171,7 @@ public class CVSHistoryPage extends HistoryPage implements IAdaptable, IHistoryC
private Text searchField;
//current tag list sort order.
- private boolean sortTagsAscending = true;
+ private boolean sortTagsAscending;
// listener registered on the book this page is contained
private DisposeListener disposeListener;
@@ -194,6 +195,7 @@ public class CVSHistoryPage extends HistoryPage implements IAdaptable, IHistoryC
if (settings == null) {
settings = viewsSettings.addNewSection(CVS_HISTORY_PAGE_SECTION);
}
+ sortTagsAscending= settings.get(SORT_ORDER_KEY) == null || settings.getBoolean(SORT_ORDER_KEY);
}
/**
@@ -281,6 +283,7 @@ public class CVSHistoryPage extends HistoryPage implements IAdaptable, IHistoryC
saveSashWeights(SASH_WEIGHTS, sashForm.getWeights());
saveSashWeights(INNER_SASH_WEIGHTS, innerSashForm.getWeights());
historyTableProvider.saveColumnLayout();
+ settings.put(SORT_ORDER_KEY, sortTagsAscending);
}
private int[] loadSashWeights(String key) {

Back to the top