Since these keys come back in pretty random order, let's sort them alphabetically.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5452 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -26,6 +26,8 @@ import javax.swing.JPanel;
|
|||||||
import javax.swing.JScrollPane;
|
import javax.swing.JScrollPane;
|
||||||
import javax.swing.JTabbedPane;
|
import javax.swing.JTabbedPane;
|
||||||
|
|
||||||
|
import com.samskivert.util.QuickSort;
|
||||||
|
|
||||||
import com.samskivert.swing.VGroupLayout;
|
import com.samskivert.swing.VGroupLayout;
|
||||||
|
|
||||||
import com.threerings.presents.util.PresentsContext;
|
import com.threerings.presents.util.PresentsContext;
|
||||||
@@ -91,15 +93,14 @@ public class ConfigEditorPanel extends JPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called in response to our getConfigInfo server-side service
|
* Called in response to our getConfigInfo server-side service request.
|
||||||
* request.
|
|
||||||
*/
|
*/
|
||||||
public void gotConfigInfo (String[] keys, int[] oids)
|
public void gotConfigInfo (String[] keys, int[] oids)
|
||||||
{
|
{
|
||||||
|
QuickSort.sort(keys);
|
||||||
// create object editor panels for each of the categories
|
// create object editor panels for each of the categories
|
||||||
for (int ii = 0; ii < keys.length; ii++) {
|
for (int ii = 0; ii < keys.length; ii++) {
|
||||||
ObjectEditorPanel panel =
|
ObjectEditorPanel panel = new ObjectEditorPanel(_ctx, keys[ii], oids[ii]);
|
||||||
new ObjectEditorPanel(_ctx, keys[ii], oids[ii]);
|
|
||||||
JScrollPane scrolly = new JScrollPane(panel);
|
JScrollPane scrolly = new JScrollPane(panel);
|
||||||
_oeditors.addTab(keys[ii], scrolly);
|
_oeditors.addTab(keys[ii], scrolly);
|
||||||
if (keys[ii].equals(_defaultPane)) {
|
if (keys[ii].equals(_defaultPane)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user