Issue #1667 - Sort categories in the Stats Dialog's catgory drop-down
Change-Id: I92016564da48f7f736bebf58fdc0afca5cc1d9ff Former-commit-id:fdd5e903c6
[formerlyb48e70fff4
] [formerlyfdd5e903c6
[formerlyb48e70fff4
] [formerlyc77602652e
[formerly 1d9c456b697a79f6093550a26cb3d2d4f972548d]]] Former-commit-id:c77602652e
Former-commit-id:882c46dd85
[formerly3071eb8456
] Former-commit-id:bb240a10db
This commit is contained in:
parent
1e41b4a44a
commit
a62b8b824e
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,9 @@ import java.util.Collections;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
import java.util.TreeSet;
|
||||||
|
|
||||||
import org.eclipse.swt.SWT;
|
import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.events.SelectionAdapter;
|
import org.eclipse.swt.events.SelectionAdapter;
|
||||||
|
@ -71,6 +73,7 @@ import com.raytheon.viz.ui.widgets.duallist.IUpdate;
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Sep 25, 2012 1357 mpduff Initial creation.
|
* Sep 25, 2012 1357 mpduff Initial creation.
|
||||||
* Jan 17, 2013 1357 mpduff Added timestep settings.
|
* Jan 17, 2013 1357 mpduff Added timestep settings.
|
||||||
|
* Feb 26, 2013 1667 mpduff Sort categories.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -455,7 +458,7 @@ public class StatsControlDlg extends CaveSWTDialog implements IStatsControl,
|
||||||
* Populate the categore combo box
|
* Populate the categore combo box
|
||||||
*/
|
*/
|
||||||
private void populateCategoryCombo() {
|
private void populateCategoryCombo() {
|
||||||
List<String> items = new ArrayList<String>();
|
Set<String> items = new TreeSet<String>();
|
||||||
for (StatisticsConfig config : this.configList) {
|
for (StatisticsConfig config : this.configList) {
|
||||||
items.addAll(config.getCategories());
|
items.addAll(config.getCategories());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue