From d0e806b47b0f67bb958f590624f3cf1d865732b5 Mon Sep 17 00:00:00 2001 From: "bdragon.park" Date: Wed, 11 Oct 2017 16:34:15 +0900 Subject: [PATCH] RTSDK : Sort boards and options in Select board dialog Signed-off-by: bdragon.park --- .../src/org/tizen/rt/ide/commands/model/BuildOption.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/commands/model/BuildOption.java b/rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/commands/model/BuildOption.java index bb6aca0..b33a635 100644 --- a/rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/commands/model/BuildOption.java +++ b/rt-ide/tizen.rt.product.plugin/src/org/tizen/rt/ide/commands/model/BuildOption.java @@ -31,7 +31,9 @@ package org.tizen.rt.ide.commands.model; import java.io.File; import java.io.FilenameFilter; import java.util.ArrayList; +import java.util.Comparator; import java.util.List; + import org.tizen.rt.ide.util.ResourceUtil; /** @@ -118,6 +120,13 @@ public class BuildOption { } } + availBoardList.sort(new Comparator() { + @Override + public int compare(String o1, String o2) { + return o1.compareToIgnoreCase(o2); + } + }); + return availBoardList; } @@ -148,6 +157,13 @@ public class BuildOption { } } + buildOptionList.sort(new Comparator() { + @Override + public int compare(BuildOption o1, BuildOption o2) { + return o1.getBuildOption().compareToIgnoreCase(o2.getBuildOption()); + } + }); + return buildOptionList; } -- 2.7.4