Merge "Issue #1667 - Sort categories in the Stats Dialog's catgory drop-down" into development
Former-commit-id:41820c3632
[formerlya4b41e0309
] [formerly9cf3ca07b7
] [formerly46ff81108a
[formerly9cf3ca07b7
[formerly 26fa358838588643c003287d8125e58949c3648f]]] Former-commit-id:46ff81108a
Former-commit-id: eb05278da104f386aa87461ec56cd8a9b2591419 [formerlycb7fd87715
] Former-commit-id:4212af7e8a
This commit is contained in:
commit
923e4b413e
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,9 @@ import java.util.Collections;
|
|||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.TimeZone;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import org.eclipse.swt.SWT;
|
||||
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.
|
||||
* Jan 17, 2013 1357 mpduff Added timestep settings.
|
||||
* Feb 26, 2013 1667 mpduff Sort categories.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -455,7 +458,7 @@ public class StatsControlDlg extends CaveSWTDialog implements IStatsControl,
|
|||
* Populate the categore combo box
|
||||
*/
|
||||
private void populateCategoryCombo() {
|
||||
List<String> items = new ArrayList<String>();
|
||||
Set<String> items = new TreeSet<String>();
|
||||
for (StatisticsConfig config : this.configList) {
|
||||
items.addAll(config.getCategories());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue